ROM-Resident Routine PUTBYTE

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ROM-Resident Routine PUTBYTE

4,068 次查看
Brusse
Contributor I
Hi,
Is it possible to use then ROM-Resident Routine PUTBYTE in a 68HC908QT4 (Classic). I found the routine in the new improved 68HC908QT4A but can´t find any documentation about Classic.
标签 (1)
0 项奖励
回复
4 回复数

1,246 次查看
bigmac
Specialist III

Hello Brusse,

The PUTBYTE  routine should be located at address $FED0 for the QT4 (classic).

Regards,
Mac

 

0 项奖励
回复

1,246 次查看
Brusse
Contributor I

Many thanks, Mac

Do you know if there is any special conciderations to deal with before i make a call to the routine, i guess the charater to be send should be held in Acc. (have you found this information in some docs?)

0 项奖励
回复

1,246 次查看
bigmac
Specialist III

Hello Bru,

Have a look at AN1831 (Rev 3), where the code for the ROM routine RDVRRNG makes a call to PUTBYTE.  I think I have also read that the H:X register value is preserved by PUTBYTE.

I have not yet done so myself, but it may not be too onorous to disassemble this code, using an actual device, to find out how the routine works.

Regards,
Mac

 

0 项奖励
回复

1,246 次查看
gbm
Contributor II
Yes, it is possible. The built in monitor code uses it.
0 项奖励
回复