Ignore:
Timestamp:
Apr 11, 2014, 9:36:56 PM (11 years ago)
Author:
Ben Rietbroek
Message:

Converting to JWasm -- phase #1 (not working) [2012-02-15]

WARNING!!

All commits upto and including the commit of [2012-05-13] contain
a severe bug!! Building from these sources and then disabling
the 'force LBA' feature while also using the drive-letter feature or
editing the label can DESTROY THE MBR on ALL ATTACHED DISKS!!
DO NOT DISABLE 'FORCE LBA USAGE' WHEN BUILT FROM THE THESE COMMITS!!

Problems

o WLink generates an oversized image
o Only Tasm with TLink works correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BOOTCODE/REGULAR/VIDEOIO.ASM

    r37 r38  
    2424ENDIF
    2525
    26 VideoIO_WaitRetrace Proc Near   Uses ax dx
    27         mov     dx, 3DAh
    28     VIOWR_Jump1:
    29         in      al, dx
    30         test    al, 8
    31         jnz     VIOWR_Jump1
    32     VIOWR_Jump2:
    33         in      al, dx
    34         test    al, 8
    35         jz      VIOWR_Jump2
    36         ret
    37 VideoIO_WaitRetrace EndP
     26VideoIO_WaitRetrace             Proc Near   Uses ax dx
     27   mov     dx, 3DAh
     28 VIOWR_Jump1:
     29   in      al, dx
     30   test    al, 8
     31   jnz     VIOWR_Jump1
     32 VIOWR_Jump2:
     33   in      al, dx
     34   test    al, 8
     35   jz      VIOWR_Jump2
     36   ret
     37VideoIO_WaitRetrace             EndP
    3838
    3939
     
    4141; Holds the current position. Yeah, I know this is in the code area, but who
    4242;  cares :))
    43 TextPosY                    db  0h
    44 TextPosX                    db  0h
    45 TextColorFore               db  7h
    46 TextColorBack               db  0h
     43TextPosY                     db     0h
     44TextPosX                     db     0h
     45TextColorFore                db     7h
     46TextColorBack                db     0h
    4747
    4848;        In: CH - Cursor Column, CL - Cursor Row (Start at 1,1)
    4949; Destroyed: None
    50 VideoIO_Locate  Proc Near   Uses cx
    51         or      ch, ch
    52         jz      VIOL_IgnoreY
    53         dec     ch
    54         mov     TextPosY, ch
    55     VIOL_IgnoreY:
    56         or      cl, cl
    57         jz      VIOL_IgnoreX
    58         dec     cl
    59         mov     TextPosX, cl
    60     VIOL_IgnoreX:
    61         ret
    62 VideoIO_Locate  EndP
     50VideoIO_Locate                  Proc Near   Uses cx
     51   or      ch, ch
     52   jz      VIOL_IgnoreY
     53   dec     ch
     54   mov     TextPosY, ch
     55  VIOL_IgnoreY:
     56   or      cl, cl
     57   jz      VIOL_IgnoreX
     58   dec     cl
     59   mov     TextPosX, cl
     60  VIOL_IgnoreX:
     61   ret
     62VideoIO_Locate                  EndP
    6363
    6464;        In: CH - Cursor Column, CL - Center Cursor Row (Start at 1,1)
     
    549549         cmp     ah, Keys_ESC
    550550         je      VIOLUES_KeyESC
    551          cmp     ah, Keys_ENTER
     551         cmp     ah, Keys_Enter
    552552         je      VIOLUES_KeyENTER
    553553         cmp     ah, Keys_Backspace
     
    836836
    837837; Disk Info to Dump to AB LogScreen
    838 Disk              db "DISK ",0
    839 ;BiosCyls          db "Cyls    :",0
    840 BiosHeads         db "Heads   :",0
    841 BiosSecs          db "Secs    :",0
    842 LvmSecs           db "SecsLVM :",0
    843 BiosLBA           db "LBA Secs:",0
    844 
    845 
    846 HugeBootDisk      db "Boot Disk is Huge    : ",0
    847 DisksFound        db "Disks Found          : ",0
    848 PartitionsFound   db "Partitions Found     : ",0
    849 ;AutoStartPart     db "Auto Start Partition : ",0
    850 
    851 Phase1            db "eCS Install Phase 1  : ",0
    852 
    853 
    854 ShowMenu          db "Press TAB to return to the AiR-BOOT Menu",0
    855 ;ShowBootLog       db "Press TAB to see the Boot Log...",0
    856 
    857 Yes               db "YES",0
    858 No                db "NO",0
    859 On                db "ON",0
    860 Off               db "OFF",0
    861 None              db "NONE",0
    862 Active            db "ACTIVE",0
    863 NotActive         db "NOT ACTIVE",0
     838Disk:             db "DISK ",0
     839;BiosCyls:         db "Cyls    :",0
     840BiosHeads:        db "Heads   :",0
     841BiosSecs:         db "Secs    :",0
     842LvmSecs:          db "SecsLVM :",0
     843BiosLBA:          db "LBA Secs:",0
     844
     845
     846HugeBootDisk:     db "Boot Disk is Huge    : ",0
     847DisksFound:       db "Disks Found          : ",0
     848PartitionsFound:  db "Partitions Found     : ",0
     849;AutoStartPart:    db "Auto Start Partition : ",0
     850
     851Phase1:           db "eCS Install Phase 1  : ",0
     852
     853
     854ShowMenu:         db "Press TAB to return to the AiR-BOOT Menu",0
     855;ShowBootLog:      db "Press TAB to see the Boot Log...",0
     856
     857Yes:              db "YES",0
     858No:               db "NO",0
     859On:               db "ON",0
     860Off:              db "OFF",0
     861None:             db "NONE",0
     862Active:           db "ACTIVE",0
     863NotActive:        db "NOT ACTIVE",0
    864864
    865865; New Line for use by MBR_Teletype
    866 NL          db 0dh, 0ah, 0
     866NL:         db 0dh, 0ah, 0
Note: See TracChangeset for help on using the changeset viewer.