0 Members and 1 Guest are viewing this topic.
111111---22----- 1 -- push regpair[f2*2]
4 bit: f a l h e d p b 000 001 010 011 100 101 110 1118 bit: af hl de bp 00 01 10 11
Goplat, I need some clarification on some of the opcodes. What is block add?
When you shift, what are the arguments?
Edit2: Your push/pops are wrong. It should be:Code: [Select]111111---22----- 1 -- push regpair[f2*2]
Edit4: Based on your system, what would 3EE0 be? I have no idea.
8-9: Stack pointer. Emulator masks off bits 0 and 7 when modified. References memory from 080 to 0FF10-11: Bit 1: Enable ON key interrupt Bit 2: Enable timer 1 Bit 3: Enable timer 2 Bit 4: Enable key press interrupt Bit 5: Enable DMA complete interrupt12-13: Bits 0-5: Select keypad rows16-17: Bits 0-7: Bit set when key pressed22: Bit 1: Set to start LCD update23: Bit 0: Set to enable DRam bank/address auto-increment or decrement on access to 30-31 Bit 1: If set, DRam bank/address auto-decrements, otherwise auto-increments24: Bit 0: Allow access to DRam banks 0-D Bit 1: Allow access to DRam banks E-F27: DRam bank28-29: DRam address30-31: DRam data. Access as a pair to read or write a byte32-33: Bits 0-7: Key press interrupt column mask40-41: Bit 0: ON key interrupt active Bit 1: Timer 1 interrupt active Bit 2: Timer 2 interrupt active Bit 3: Key pressed interrupt active Bit 4: DMA interrupt active Bit 5: LCD interrupt active42: Bits 0-1: Timer 1 interval 00 = 350000 TStates 01 = 350000 TStates 02 = 350000 TStates 03 = 350000 TStates (...yes, they're all the same) Bit 2: Timer 1 interrupt enable43: Bits 0-1: Timer 2 interval 00 = 6000 TStates 01 = 6000 TStates 02 = 6000 TStates 03 = 6000 TStates (...ditto) Bit 2: Timer 2 interrupt enable44: Bit 0: Set to enable timers47: Bit 0: ON key pressed Bit 3: Enable interrupt on ON key48-50: DRam DMA byte count (000-7FF)51: DRam DMA source bank52-53: DRam DMA source address56: DRam DMA bit shift count (0-7)58: Bit 0: Set to start DMA; cleared when done Bit 3: Interrupt when complete59: DRam DMA destination bank60-61: DRam DMA destination address
Yea, doesn't look like. Last post was a couple years ago. Some pretty talented people already took a crack at this, so I'm not sure you'll have much luck either.