Jump to content
IGNORED

with effectus and DEFINE you can use the source code of ASM


funkheld

Recommended Posts

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

  • Like 1
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...