Ignore:
Timestamp:
Jan 25, 2011, 9:13:56 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Size optimizations in various files in the XTIDE BIOS.
Also added a new include file for generic macros (macros.inc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/PrintString.asm

    r3 r86  
    1 ; File name     :   PrintString.asm
    21; Project name  :   IDE BIOS
    3 ; Created date  :   19.3.2010
    4 ; Last update   :   31.3.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Functions for printing strings used in this IDE BIOS.
    7 
    83
    94; Section containing code
     
    138; Prints string with formatting parameters.
    149; Do not call PrintString_JumpToFormat!!! Jump there only!
    15 ; 
     10;
    1611; PrintString_JumpToFormat
    1712;   Parameters:
     
    4237;--------------------------------------------------------------------
    4338; Prints STOP terminated string from wanted segment.
    44 ; 
     39;
    4540; PrintString_FromCS
    4641; PrintString_FromES
     
    5651PrintString_FromCS:
    5752    push    ds
    58     push    cs                  ; Push string segment...
    59     pop     ds                  ; ...and pop it to DS
    60     call    PrintString_FromDS
    61     pop     ds
    62     ret
    63 
    64 ALIGN JUMP_ALIGN
     53    push    cs                  ; Push string segment here...
     54    SKIP2B  ax                  ; mov ax, <next 2 bytes/instructions>
    6555PrintString_FromES:
    6656    push    ds
    67     push    es                  ; Push string segment...
     57    push    es                  ; ...or here...
    6858    pop     ds                  ; ...and pop it to DS
    6959    call    PrintString_FromDS
Note: See TracChangeset for help on using the changeset viewer.