What syntax would you use with avrasm2 to indicate an ascii character.

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 0x48    is the hexadecimal notation for the ascii letter H

 

What would the syntax look like if you wanted to directly pass the ascii letter H to  the assembler instead of the 0x48. In other words letter the assembler do the ascii conversion instead of me.

 

 

 

Thanks

Roger

This topic has a solution.
Last Edited: Sun. Sep 8, 2019 - 04:32 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

'H' - single quotes indicate a character value.

 

Neil

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So

LDI R16,'H'

etc

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Question answered.

Thanks,

Roger