|
|
| version 1.3, 2004/08/11 12:08:17 | version 1.5, 2005/02/04 06:42:14 |
|---|---|
| Line 137 _scf: and byte [edi + R_Z80F], ~(H_FL | Line 137 _scf: and byte [edi + R_Z80F], ~(H_FL |
| align 16 | align 16 |
| _halt: dec word [edi + R_Z80PC] | _halt: dec word [edi + R_Z80PC] |
| or byte [edi + R_Z80IFF], (1 << IFF_HALT) | or byte [edi + R_Z80IFF], (1 << IFF_HALT) |
| mov dword [edi + z80core_t.remainclock], 0 | |
| ret | ret |
| align 16 | align 16 |
| Line 150 _ei: mov al, [edi + R_Z80IFF] | Line 151 _ei: mov al, [edi + R_Z80IFF] |
| and al, ~(1 << IFF_IFLAG) | and al, ~(1 << IFF_IFLAG) |
| mov edx, [edi + z80core_t.remainclock] | mov edx, [edi + z80core_t.remainclock] |
| mov [edi + R_Z80IFF], al | mov [edi + R_Z80IFF], al |
| test al, ((1 << IFF_IRQ) | (1 << IFF_NMI)) | test al, (1 << IFF_NMI) |
| jne short .nextop | jne short .nextop |
| cmp dword [edi + z80core_t.reqirq], byte 0 | cmp dword [edi + R_Z80REQIRQ], byte 0 |
| jne short .eventexit | jne short .eventexit |
| .nextop: cmp edx, byte 1 | .nextop: cmp edx, byte 1 |
| jge short .ed | jge short .ed |