View Single Post
Old 26 April 2016, 08:56   #19
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by Sim085 View Post
So I would say the following code is valid...

Code:
00056C    TST.B    (A1)+
00056E    BNE.B    START+$056C
My understanding of the above code is that at line 056C it checks if the byte at address location A1 is a zero and increments A1 by one. At line 056E, if previous line returned false (i.e. - not zero) then it loops.
Yea. Looks like common code to find the end of a string. It's odd that no label was generated but I'm no Resource expert.

Quote:
Originally Posted by Sim085 View Post
When I use LAmiga+A I do not get recognizable text. When I use LAmiga+W and I get the following:

Code:
    dw    0
    dw    $2264
    dw    8
    dw    $2064
    dw    4    ; the line at the end
...
Would it have an effect on the assembler if dw is used instead of dl or db? As this is not code I am not really interested in it at the moment however do not know if it would still stop me from re-assemble.
Not all data is text (some are numbers). There is no zero byte at the end so this is probably not text but it is difficult to know without labels to this data and without seeing what is after this.

It doesn't matter if dl, dw or db is used. It affects how compact and readable the data is but not the assembler output.
matthey is offline  
 
Page generated in 0.25279 seconds with 11 queries