diff options
author | Matt Fleming <matt.fleming@intel.com> | 2011-10-18 13:13:06 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2011-12-01 13:14:05 +0000 |
commit | 9f51b69d7c0500e04b3c404bb5138a9234810035 (patch) | |
tree | d566e6984457f331288f34d780f15a680334af94 /core/isolinux.asm | |
parent | dd5e4935f3e2f8f1940c72d9c3b39a926300c42e (diff) | |
download | syslinux-9f51b69d7c0500e04b3c404bb5138a9234810035.tar.gz |
core: Reimplement lots asm code in C
There is an awful lot of code currently implemented in assembly when
it could just as easily be implemented in C. Having it in C makes it
much easier to share code between the BIOS and forthcoming EFI
firmware backend. The following code fragments have been rewritten,
- timer initialisation
- adjust_screen()
- check_esapes() and mem_init()
- conio.inc
- plaincon.inc
- cleanup.inc
- serirq.inc
- font.inc
- graphics
- writehex
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r-- | core/isolinux.asm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm index 895468ca..b0b21a3b 100644 --- a/core/isolinux.asm +++ b/core/isolinux.asm @@ -1169,6 +1169,22 @@ ROOT_FS_OPS: section .text16 +%ifdef DEBUG_TRACERS +; +; debug hack to print a character with minimal code impact +; +debug_tracer: pushad + pushfd + mov bp,sp + mov bx,[bp+9*4] ; Get return address + mov al,[cs:bx] ; Get data byte + inc word [bp+9*4] ; Return to after data byte + call writechr + popfd + popad + ret +%endif ; DEBUG_TRACERS + ; ; Now we have the config file open. Parse the config file and ; run the user interface. |