Show
Ignore:
Timestamp:
10/11/09 00:42:34 (3 years ago)
Author:
brandonlw
Message:

Added a whole bunch of variable/memory management routines -- not complete, but we're close to being able to query, store, and manipulate variables and the VAT again

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/page00/display.asm

    r47 r49  
    44 PUBLIC AnimateRunIndicator,DispHexA,PutS,PutC,curBlink,SaveOScreen,DispHexHL,EraseEOL,ClrLCDFull 
    55 PUBLIC _LCD_COMMAND,SetXAutoIncrementMode,SetYAutoIncrementMode,IPutSB,PutMap,ClrScrnFull,ClrTxtShd 
    6  PUBLIC saveTR,restoreTR,showCursor,CursorOff,CursorOn,hideCursor,RunIndicOn,IPutC 
    7  EXTERN IsAtEditTail,IsAtBtm,LCDDelay,ATimes16 
     6 PUBLIC saveTR,restoreTR,showCursor,CursorOff,CursorOn,hideCursor,RunIndicOn,IPutC,_LCD_DRIVERON 
     7 EXTERN IsAtEditTail,IsAtBtm,LCDDelay,ATimes16,NZIf83Plus 
    88 
    99 include "includes\os2.inc" 
     10 
     11_LCD_DRIVERON: 
     12       ld a,40h 
     13       call LCDDelay 
     14       out (LCDinstPort),a 
     15       ld a,5 
     16       call LCDDelay 
     17       out (LCDinstPort),a 
     18       ld a,1 
     19       call LCDDelay 
     20       out (LCDinstPort),a 
     21       ld a,lcdTurnOn 
     22       call LCDDelay 
     23       out (LCDinstPort),a 
     24       ld a,16h 
     25       call NZIf83Plus 
     26       jr nz,$F 
     27       ld a,17h 
     28$$:    call LCDDelay 
     29       out (LCDinstPort),a 
     30       ld a,8 
     31       call NZIf83Plus 
     32       jr nz,$F 
     33       ld a,0Bh 
     34$$:    call LCDDelay 
     35       out (LCDinstPort),a 
     36       ld a,(contrast) 
     37       add a,18h 
     38       or 0C0h 
     39       call LCDDelay 
     40       out (LCDinstPort),a 
     41       ret 
    1042 
    1143RunIndicOn: