You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kpicosim/src/hexcodes.h

65 lines
1.8 KiB

#ifndef HEXCODES
#define HEXCODES
#define instrADD_SX_KK 0x18000
#define instrADD_SX_SY 0x19000
#define instrADDCY_SX_KK 0x1A000
#define instrADDCY_SX_SY 0x1B000
#define instrAND_SX_KK 0x0A000
#define instrAND_SX_SY 0x0B000
#define instrCALL 0x30000
#define instrCALLC 0x31800
#define instrCALLNC 0x31C00
#define instrCALLNZ 0x31400
#define instrCALLZ 0x31000
#define instrCOMPARE_SX_KK 0x14000
#define instrCOMPARE_SX_SY 0x15000
#define instrDISABLE_INTERRUPT 0x3C000
#define instrENABLE_INTERRUPT 0x3C001
#define instrFETCH_SX_SS 0x06000
#define instrFETCH_SX_SY 0x07000
#define instrINPUT_SX_SY 0x05000
#define instrINPUT_SX_PP 0x04000
#define instrJUMP 0x34000
#define instrJUMPC 0x35800
#define instrJUMPNC 0x35C00
#define instrJUMPNZ 0x35400
#define instrJUMPZ 0x35000
#define instrLOAD_SX_KK 0x00000
#define instrLOAD_SX_SY 0x01000
#define instrOR_SX_KK 0x0C000
#define instrOR_SX_SY 0x0D000
#define instrOUTPUT_SX_SY 0x2D000
#define instrOUTPUT_SX_PP 0x2C000
#define instrRETURN 0x2A000
#define instrRETURNC 0x2B800
#define instrRETURNNC 0x2BC00
#define instrRETURNNZ 0x2B400
#define instrRETURNZ 0x2B000
#define instrRETURNI_DISABLE 0x38000
#define instrRETURNI_ENABLE 0x38001
#define instrROTATE 0x20000
#define instrRL_SX 0x00002
#define instrRR_SX 0x0000C
#define instrSL0_SX 0x00006
#define instrSL1_SX 0x00007
#define instrSLA_SX 0x00000
#define instrSLX_SX 0x00004
#define instrSR0_SX 0x0000E
#define instrSR1_SX 0x0000F
#define instrSRA_SX 0x00008
#define instrSRX_SX 0x0000A
#define instrSTORE_SX_SS 0x2E000
#define instrSTORE_SX_SY 0x2F000
#define instrSUB_SX_KK 0x1C000
#define instrSUB_SX_SY 0x1D000
#define instrSUBCY_SX_KK 0x1E000
#define instrSUBCY_SX_SY 0x1F000
#define instrTEST_SX_KK 0x12000
#define instrTEST_SX_SY 0x13000
#define instrXOR_SX_KK 0x0E000
#define instrXOR_SX_SY 0x0F000
#endif