/*****************************************************************************/ /* */ /* */ /* CP/M emulator version 0.1 */ /* */ /* written by Michael Bischoff (mbi@mo.math.nat.tu-bs.de) */ /* June-1994 */ /* */ /* This file is distributed under the GNU COPYRIGHT */ /* see COPYRIGHT.GNU for Copyright details */ /* */ /* */ /*****************************************************************************/ .file "single.s" gcc2_compiled.: ___gnu_compiled_c: .text .align 4,0x90 #define dispatch jmp exitemu .globl singlestep singlestep: pushl %ebp pushl %esi pushl %edi pushl %ecx pushl %edx pushl %ebx movzwl z80regs,%esi /* movzwl z80regs+4,%ebp */ movl $z80mem,%ebp movzwl z80regs+8,%ecx movzwl z80regs+12,%edx movzwl z80regs+16,%ebx movzwl z80regs+20,%eax movzbl (%esi,%ebp),%edi inc %esi sall $2,%edi jmp *jumptab(%edi) .align 4,0x90 exitemu: /* decl %esi */ movw %esi,z80regs /* movw %ebp,z80regs+4 */ movw %ecx,z80regs+8 movw %edx,z80regs+12 movw %ebx,z80regs+16 movw %eax,z80regs+20 popl %ebx popl %edx popl %ecx popl %edi popl %esi popl %ebp ret #include "code.s" #include "code2.s" .align 4,0x90