Added BITx instructions.

This commit is contained in:
mooz 2018-11-10 17:03:38 +01:00
parent 4ef0a69e8e
commit b04ff787d4
2 changed files with 15 additions and 1 deletions

View File

@ -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'

View File

@ -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')