Jump to content
IGNORED

Tasm vs Dasm assembler question


Cafeman

Recommended Posts

When I coded 5200 Koffi, I often used this neat little expression:

 


lda #<DLIRoutine

sta VDLI

lda #>DLIRoutine

sta VDLI+1

 

It seems that Tasm doesn't support this feature. So my question -- does anyone know how to do the same thing in Tasm? Adv II's code is already customized for Tasm and I've been trying to stick to using Tasm.

Link to comment
Share on other sites

lda (DLIRoutine & $FF)

...takes the address for DLIRoutine (lets say it's $4315) and does an and of $FF to mask the upper byte so you end up with $15

 

lda (DLIRoutine >>8)

...takes the address for DLIRoutine and right shifts it 8 bits so you end up with $43

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...