mirror of
https://github.com/g012/l65.git
synced 2024-06-17 19:29:46 +00:00
Added BITx instructions.
This commit is contained in:
parent
4ef0a69e8e
commit
b04ff787d4
|
@ -75,7 +75,8 @@ local opcode_immediate = lookupify{
|
|||
'calf','calt','call','jmp',
|
||||
}
|
||||
local opcode_wa = lookupify{
|
||||
'inrw','ldaw','dcrw','staw'
|
||||
'inrw','ldaw','dcrw','staw',
|
||||
'bit0','bit1','bit2','bit3','bit4','bit5','bit6','bit7',
|
||||
}
|
||||
local opcode_relative = lookupify{
|
||||
'jr','jre'
|
||||
|
|
|
@ -95,4 +95,17 @@ section{"rom", org=0x8000}
|
|||
@l8 jre l9
|
||||
nop nop nop nop
|
||||
@l9
|
||||
inrw (v,0x01)
|
||||
ldaw (v,0x23)
|
||||
dcrw (v,0x45)
|
||||
staw (v,0x67)
|
||||
bit0 (v,0x89)
|
||||
bit1 (v,0xab)
|
||||
bit2 (v,0xcd)
|
||||
bit3 (v,0xef)
|
||||
bit4 (v,0xfe)
|
||||
bit5 (v,0xdc)
|
||||
bit6 (v,0xba)
|
||||
bit7 (v,0x98)
|
||||
|
||||
writebin(filename .. '.bin')
|
Loading…
Reference in New Issue
Block a user