# 	      ---  Mikes assembly viewer ---  
#	Displays the main 32bit registers in a
#	similar style(intel) to the nasm ald debugger.
#   NOTE:
#   Because the program you are debugging is in a shell. Do not use the
#   gdb edit command. Better to exit gdb and edit the source file in the
#   original window. Gdb will complain of an open temp file on the source
#   if you do. It might just screw up your program!
#
set prompt <bugs>
set language asm
set disassembly-flavor intel
define s 
si
printf "_____________________________________________________________\n"
printf "32Mb Registers:\n"
printf "eax=0x%08x ebx=0x%08x ecx=0x%08x    edx=0x%08x\n",$eax,$ebx,$ecx,$edx
printf "esp=0x%08x ebp=0x%08x esi=0x%08x    edi=0x%08x\n",$esp,$ebp,$esi,$edi
printf " ds=0x%08x  es=0x%08x  fs=0x%08x     gs=0x%08x\n",$ds,$es,$fs,$gs
printf " ss=0x%08x  cs=0x%08x eip=0x%08x eflags=0x%08x\n",$ss,$cs,$eip,$eflags
printf "______________________________________________________________\n"
printf "Program Counter:\n"
x /6i $pc
printf "______________________________________________________________\n"
end

