Each dt (define table) directive uses up a line for each character in your table/string. If you're not careful, your code could get long despite being short.


Here's how the define table directive works. Each character in your string is actually translated into a single retlw (return literal in W).

 

For example:

dt "Hello!"

 

is translated into:

retlw 'H'
retlw 'e'

retlw 'l'
retlw 'l'
retlw 'o'
retlw '!'

Views: 27

Comment

You need to be a member of Personal Mechatronics Lab to add comments!

Join Personal Mechatronics Lab

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service