Changeset 258 in xtideuniversalbios for trunk/Assembly_Library


Ignore:
Timestamp:
Feb 22, 2012, 7:01:53 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Added floppy drive emulation over the serial connection (MODULE_SERIAL_FLOPPY). Along the way, various optimizations were made to stay within the 8K ROM size target. Also, serial code now returns the number of sectors transferred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/Macros.inc

    r119 r258  
    5252; when stack usage is undesirable (ie speed is critical).
    5353;
     54; The PRESERVE_FLAGS version will zero the register with a MOV instead
     55; of an XOR, thus preserving the flags.  It is one byte larger on
     56; non-186 or higher systems.
     57;
    5458; LOAD_BDA_SEGMENT_TO
     59; LOAD_BDA_SEGMENT_PRESERVE_FLAGS_TO
    5560;   Parameters:
    5661;       %1:     Destination Segment Register
     
    6873%elifidn %3, !
    6974    xor     %2, %2
     75    mov     %1, %2
     76%else
     77    push    BYTE 0
     78    pop     %1
     79%endif
     80%endmacro
     81
     82%macro LOAD_BDA_SEGMENT_PRESERVE_FLAGS_TO 2-3
     83%ifndef USE_186
     84    mov     %2, 0
     85    mov     %1, %2
     86%elifidn %3, !
     87    mov     %2, 0
    7088    mov     %1, %2
    7189%else
Note: See TracChangeset for help on using the changeset viewer.