Jump to content
IGNORED

effectus not funktion with define and ASM


Recommended Posts

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 by funkheld
Link to comment
Share on other sites

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