added list of operators and priorities
This commit is contained in:
1 parent
855d8c43d5
commit
d7a8649432
18 files changed
+232
-11
No files matched your search
@@ -0,0 +1,42 @@
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * BASIC_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
|
||||
oper_add:
|
||||
|
||||
// This operator can be used either with two strings, or with two floats
|
||||
// First check whether arguments match and then choose the variant
|
||||
|
||||
pla
|
||||
cmp VALTYP
|
||||
bne_16 do_TYPE_MISMATCH_error
|
||||
|
||||
lda VALTYP
|
||||
bmi oper_add_strings
|
||||
|
||||
// FALLTROUGH
|
||||
|
||||
oper_add_floats:
|
||||
|
||||
// XXX implement this
|
||||
|
||||
jmp do_NOT_IMPLEMENTED_error
|
||||
|
||||
oper_add_strings:
|
||||
|
||||
// Pull string length
|
||||
|
||||
pla
|
||||
sta __FAC2+0
|
||||
|
||||
// Retrieve string address
|
||||
|
||||
pla
|
||||
sta __FAC2+2
|
||||
pla
|
||||
sta __FAC2+1
|
||||
|
||||
// XXX merge strings here
|
||||
|
||||
rts
|
||||
Reference in new issue
Block a user