mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-04-21 22:17:15 +00:00
New WHEN/IS for hosted compiler
This commit is contained in:
+10
-1
@@ -171,11 +171,20 @@ def emit_daw(tag, offset)#0
|
||||
emit_byte($7E)
|
||||
emit_addr(tag, offset)
|
||||
end
|
||||
def emit_brne(tag)#0
|
||||
def emit_select(tag)#0
|
||||
emit_pending_seq
|
||||
emit_byte($52)
|
||||
emit_reladdr(tag)
|
||||
end
|
||||
def emit_caseblock(cnt, oflist, taglist)#0
|
||||
byte i
|
||||
|
||||
emit_byte(cnt)
|
||||
for i = 0 to cnt-1
|
||||
emit_word(oflist=>[i])
|
||||
emit_reladdr(taglist=>[i])
|
||||
next
|
||||
end
|
||||
def emit_branch(tag)#0
|
||||
emit_pending_seq
|
||||
emit_byte($50)
|
||||
|
||||
Reference in New Issue
Block a user