+Cafeman Posted March 25, 2003 Share Posted March 25, 2003 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. Quote Link to comment Share on other sites More sharing options...
Cybergoth Posted March 25, 2003 Share Posted March 25, 2003 Hi there! 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. When I ported Gunfight to TASM, I did it like this: ; Macros #DEFINE LO(x) (x & 255) #DEFINE HI(x) (x >> 8) LDA #LO(DLIRoutine) STA VDLI LDA #HI(DLIRoutine) STA VDLI+1 But TASM sucks in sooo many ways... You'll need to write macros for any single absolute zeropage addressing mode as well, for example DASMs STA.w has to be replaced with ; Macros #DEFINE STAW(x) ($8D, x, $00) ; Code .byte STAW(somezeropagelocation) Greetings, Manuel Quote Link to comment Share on other sites More sharing options...
+Cafeman Posted March 25, 2003 Author Share Posted March 25, 2003 Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.