funkheld Posted November 8, 2019 Share Posted November 8, 2019 (edited) hello, define does not work with ASM-Define. thanks. greeting ------------------------------------------------------------- DEFINE PHA = "$48", PLA = "$68", TAX = "$AA", TAY = "$A8", TXA = "$8A", TYA = "$98", RTI = "$40" PROC TEST() [PHA TYA PHA TXA PHA] [PLA TAX PLA TAY PLA RTI] RETURN PROC MAIN() TEST() RETURN ------------------------------------------------------------- Error : D:\atari\Effectus>effectus.exe define.eff An unhandled exception occurred at $0041F796: EConvertError: "TYA" is an invalid integer $0041F796 $00463FF7 $00462B2F $0042F29E $0040249A D:\atari\Effectus>mads.exe define.asm -o:define.xex define.asm (1) ERROR: Cannot open or create file 'D:\atari\Effectus\define.asm' Edited November 8, 2019 by funkheld Quote Link to comment Share on other sites More sharing options...
Gury Posted November 8, 2019 Share Posted November 8, 2019 Hi, funkheld Some structures in Action! listings are not supported yet, so this is still on-hold. Till then, please use Action! cartridge or emulator for all the listings which do not compile correctly in Effectus. Quote Link to comment Share on other sites More sharing options...
funkheld Posted November 8, 2019 Author Share Posted November 8, 2019 (edited) hello thanks for the info. greeting wonderful, the DEFINE do not consume memory in the XEX. One converts all ASM commands into DEFINE and then into Program ASM. what is it please : $A0 , $B1 ............... this ist ok.....wonderful..... ---------------------------------------- DEFINE CLD ="$D8" DEFINE CLC ="$18" DEFINE STX ="$86" DEFINE ADC ="$65" DEFINE STA ="$85" DEFINE RTS ="$60" BYTE FUNC ADD8=*(BYTE ADD3,ADD4) [ CLD CLC STX $B1 ADC $B1 STA $A0 RTS ] PROC MAIN() BYTE X1 X1=ADD8(100,50) Print("ADD8(100,50) = ") PRINTBE(X1) RETURN ------------------------------------- Edited November 8, 2019 by funkheld 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.