Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/23/01 09:06
Read: times


 
#14373 - Integer into Low and High byte
Hello all,
Can anyone tell me how can I write the following ASM code in C?

MOV TH1, #HIGH RST_VAL
MOV TL1, #LOW RST_VAL

RST_VAL is an integer value (19456) that I need to convert it to Hex (0x4C00). Then take the hex value, separate it to high and low byte and put them in TH and TL.

Thanks,
Roberto

List of 12 messages in thread
TopicAuthorDate
Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer to Low and High byte - Oleg            01/01/70 00:00      
RE: Integer into Low and High byte - ALL            01/01/70 00:00      
RE: Integer into Low and High byte            01/01/70 00:00      
RE: Integer into Low and High - Lennart            01/01/70 00:00      

Back to Subject List