home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / screen / smode.lzh / NANSI.DIF < prev    next >
Text File  |  1988-05-21  |  3KB  |  62 lines

  1.    nansi.asm (24 Jun 1986 12:08:08)
  2.            ..\nansi.asm (21 May 1988 23:35:36)
  3. ===================
  4.       26      26  |;             noticed & squashed 2 related bugs in tab expansion
  5.       27      27  |; 13 feb 86:  Squashed them again, harder
  6. +             28  |; 10 Apr 88:  Added more complete 43/50 line support
  7.       28      29  |;------------------------------------------------------------------------
  8.       29      30  |
  9. ===================
  10.      130     131  |timer_low       dw      ?       ; low word of time-of-day counter (18.2 hz)
  11.      131     132  |
  12. +            133  |
  13. +            134  |                org     84h
  14. +            135  |video_rows      db      ?
  15.      132     136  |ABS40   ends
  16.      133     137  |
  17. ===================
  18.      256     260  |        push    ds
  19.      257     261  |        push    es
  20. +            262  |
  21. +            263  |        assume  cs:code, ds:abs40
  22. +            264  |        mov     ax, abs40
  23. +            265  |        mov     ds, ax
  24. +            266  |        mov     al, video_rows
  25. +            267  |        mov     cs:max_y, al
  26. +            268  |        assume  cs:code, ds:code
  27.      258     269  |
  28.      259     270  |        ; Read requested function information into registers
  29. ===================
  30.      423     434  |        push    es
  31.      424     435  |        push_all
  32. +            436  |        mov     bx, 40h
  33. +            437  |        mov     ds, bx
  34. +            438  |        assume  cs:code, ds:abs40
  35. +            439  |        mov     bl, video_rows
  36. +            440  |        mov     cs:max_y, bl
  37.      425     441  |        mov     cx, 1
  38.      426     442  |        mov     bx, cs
  39.      427     443  |        mov     es, bx
  40.      428     444  |        mov     ds, bx
  41. +            445  |        assume  cs:code, ds:code
  42.      429     446  |        mov     si, offset int_29_buf
  43.      430     447  |        mov     byte ptr [si], al
  44. ===================
  45.      837     854  |        mov     ds, ax
  46.      838     855  |; Does anybody ever use anything but page zero?
  47. +            856  |; Yes!
  48. +            857  |        mov     al,active_page
  49. +            858  |        cbw
  50. +            859  |        add     ax,ax
  51. +            860  |        xchg    bx,ax
  52. -    839          |;       mov     al,active_page
  53. -    840          |;       cbw
  54. -    841          |;       add     ax,ax
  55. -    842          |;       xchg    bx,ax
  56.      843     861  |        mov     ax, cs:cur_coords
  57. +            862  |        mov     cursor_posn[bx],ax
  58. -    844          |        mov     cursor_posn,ax
  59.      845     863  |        ret
  60.      846     864  |
  61. ===================
  62.