My favorites | Sign in
Project Home Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 12: db pseudo op issues
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  h.paul.h...@gmail.com


 
Project Member Reported by h.paul.h...@gmail.com, Mar 17, 2014
What steps will reproduce the problem?
1. Message:   db "Hello World!"
2.            org 0x40
   ListHead:  db E3
   E1         db 100
              db E2
   E2         db 200
              db 0
   E3         db 300
              db E1
   
3.

What is the expected output? What do you see instead?
1) in first case, the string is upcased AND a null character is appended to end.  Prefer to have programmer insert null character as in:
   Message:    db "Hello World!",0

2) in second case, assembler is not indicating an error BUT is generating a zero.  ListHead should have value 0x46 and so on.  Traversal of the list using the pointer values should yield 300, 100 and 200.




Powered by Google Project Hosting