Jump to content
IGNORED

Odd DASM Messages


Karl G

Recommended Posts

I'm trying to figure out the cause of messages along these lines output by DASM:

old value: $0001  new value: $000e
old value: $0007  new value: $0004
old value: $fa00  new value: $fa05
old value: $fa05 new value: $fa0a

...

There are 51 of them, and I believe that they are coming from an assembly module where I'm defining 50 text glyphs like so:

text_data

left_text

__A = * - text_data ; baseline (0)
    .byte %00100000 
    .byte %01010000
    .byte %01110000
    .byte %01010000
    .byte %01010000
    
__B = * - __A
    .byte %01100000
    .byte %01010000
    .byte %01100000
    .byte %01010000
    .byte %01100000    
    
__C = * - __A
    .byte %00110000
    .byte %01000000
    .byte %01000000
    .byte %01000000
    .byte %00110000    
    
__D = * - __A
    .byte %01100000
    .byte %01010000
    .byte %01010000
    .byte %01010000
    .byte %01100000

...

There are also definitions for the same glyphs with the glyphs on the right side, but without the labels.

 

What do these messages likely mean? I would think that this message would be indicating that I'm redefining symbols, but I don't think that's the case here.

 

Link to comment
Share on other sites

I saw that error before. Turns out that I didn't declare the address location of a variable soon enough in the assembly (so that on first pass, some instructions were using absolute addressing, and then zero page addressing on the second pass). Have Dasm make a report with the -List switch, then take a look at where the errors start. It'll show you how many bytes each instruction is using as it builds the binary.

 

Dasm C:\folder_name\program.asm -f3 -lreport.txt -oC:\folder_name\binary.bin

Edited by Nukey Shay
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...