funkheld Posted November 11, 2019 Share Posted November 11, 2019 Hi good afternoon. with effectus and DEFINE you can use the source code of ASM you have to assign the code number to the corresponding commands of ASM with DEFINE. And attach a short cut to the special orders to distinguish. Greeting DEFINE CLD="$D8" DEFINE CLC="$18" DEFINE STX="$86" DEFINE ADC="$65" DEFINE STA="$85" DEFINE RTS="$60" DEFINE STY="$84" DEFINE LDA="$A5" BYTE FUNC ADD8=*(BYTE ADD3,ADD4) [ CLD CLC STX $B1 ADC $B1 STA $A0 RTS] CARD FUNC ADD16=*(CARD ADD1,ADD2) [ CLD CLC STX $B1 STY $B2 ADC $B2 STA $A0 LDA $B1 ADC $A3 STA $A1 RTS] PROC MAIN() BYTE X1 CARD NUM PutE() PutE() X1=ADD8(103,50) Print("ADD8 = ") PRINTBE(X1) NUM=ADD16(1100,34900) Print("ADD16 = ") PRINTCE(NUM) RETURN 1 Quote Link to comment Share on other sites More sharing options...
stepho Posted November 12, 2019 Share Posted November 12, 2019 Those opcode definitions look like prime candidates for an INCLUDE file. Quote Link to comment Share on other sites More sharing options...
funkheld Posted November 12, 2019 Author Share Posted November 12, 2019 Yes, you can set it as INCLUDE. Since I test with altira, I push the xex from right to left over to Altira. That's why I'm not doing any INCLUDE for the disc here. greeting 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.