home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / pg / pg200 / rammap.do < prev    next >
Text File  |  2006-10-19  |  10KB  |  278 lines

  1. T200 Memory Map @ 10/13/88
  2. ---------------------------------------
  3. *CALLS*
  4. 0    WARM START (RESET)
  5. 128-608 BASIC TOKENS
  6. 4455:   A=0(LIST)/A=1(LLIST)
  7. 4855:   WAIT FOR A KEY PRESS/A=KEY
  8. 5449:    PWR OFF
  9. 5568:    MOTOR ON
  10. 5570:    MOTOR OFF
  11. 10566:    LCOPY
  12. 10763:* SAVE .BA
  13. 10794:    FILES
  14. 11174:* FIND .CO/DE=MEM,HL=DIR,ZERO FLAG OFF IF FOUND
  15. 11197:* FIND .DO/DE=MEM,HL=DIR,ZERO FLAG OFF IF FOUND
  16. 11203:* FIND .BA/DE=MEM,HL=DIR,ZERO FLAG OFF IF FOUND
  17. 11635:  JMP TO .DO/CREATE IF DOESN'T EXIST/FILE NAME MUST BE AT [HL]
  18. 11644:    JMP TO TEXT FILE NAME @ 63302
  19. 11711:  SWAP FILE NAMES IN 63302 AND 63311
  20. 12390:* SAVEM .CO
  21. 18187:  PRINT INTEGER HL
  22. 20286:  CR&LF
  23. 20293:    BEEP
  24. 20297:  HOME
  25. 20301:    CLS
  26. 20308:  LABEL ON(WITHOUT DISPLAY)
  27. 20313:  LABEL OFF
  28. 20318:  SCROLL OFF
  29. 20323:  SCROLL ON
  30. 20328:  cursor on
  31. 20333:  cursor off
  32. 20360:  INV
  33. 20365:  NORM
  34. 20367:  PRINT ESC,A
  35. 20393:  LABEL OFF
  36. 20423:  LABEL ON(WITH DISPLAY)
  37. 21020:  SCRL UP
  38. 21101:  SCRL DOWN
  39. 21671:  DISPLAY CURRENT PAGE
  40. 21713:  DISPLAY PREV PAGE
  41. 21744:  INPUT$/STORED AT 61296
  42. 23060,n    SEND n (ASCII) TO PRINTER
  43. 23159:  CR&LF IF NOT 1ST COLUMN
  44. 24573:    JMP TO TELCOM
  45. 25018:    DISCONNECT PHONE LN
  46. 25040:    CONNECT PHONE LINE
  47. 25102:  2 SEC DELAY
  48. 25386,n    DIAL A DIGIT n
  49. 25464:    JMP TO TERM
  50. 26532:    MENU
  51. 25757:  Dsply prev pg with key rtn
  52. 27272:**DISPLAY FILE LENGTH
  53. 27719:**JMP TO FILE
  54. 28062:  DISP DAY,DATE,TIME
  55. 28391:    JUMP TO ADDRSS
  56. 28397:    JMP TO SCHDL
  57. 28797:  FIND EOL
  58. 29085:    JMP TO TEXT
  59. 29118,0,X: (JMP TO .DO) A=VARPTR((file.exe)+chr$(0)) x=peek(a+1)+256*peek(a+2)
  60. 29402,,v: WAITS FOR SPACEBAR AND JUMPS TO "v" ($ adrs for dsply or a routine)
  61. 32287:  JMP TO .DO/FILE NAME MUST BE AT [HL]
  62. 33820:    COLD START
  63. 33679:    JMP TO BASIC
  64. 34312:    SEND Xon  ^Q
  65. 34327:    SEND Xoff ^S
  66. 35587:  CLEARS ONE SET OF KYBRD BYTES
  67. 36611:  SHIFT SCREEN BY +- HL
  68. 36809:    "TIC"
  69. 36963-38754: CHAR BIT MAP
  70. 39677:    LIST FREE RAM
  71. 40104:    DO NOTHING (Return)
  72.  
  73. *6 char file name w/o ext @ 63302
  74. ** file# @ 63560
  75.  
  76. =====================================
  77.  
  78. "+" means one more byte, "++" means two more bytes (the RST #.5 vectors allow
  79. for a 3 byte jump).
  80. =====================================
  81.  61104  EEB0    MAXRAM
  82.  61108  EEB4+    Holds HIMEM value
  83.  61113  EEB9++    RST 5.5 vector (bar code)
  84.  61119  EEBF++    RST 6.5 vector
  85.  61122  EEC2++    RST 7.5 vector
  86.  61172  EEF4    Dialing method 0=tone,1,14
  87.  61173  EEF5    Active bank stored (in bank 1)
  88.  61181-61118    KEY ON/OFF FLAGS 8 bytes
  89.  61189  EF05    Current screen in use
  90.  61190  EF06    Current cursor row position
  91.  61191  EF07    Current cursor column position
  92.  61192  EF08    Max number of lines on screen
  93.  61193  EF09    Max screen width (basic line width)
  94.  61194  EF0A    LABEL LINE FLAG 0/off 255/on
  95.  61195  EF0B    Screen lock flag
  96.  61197  EF0D    Current LCD Y position
  97.  61198  EF0E    Current LCD X position
  98.  61205  EF15    Reverse LCD Display Flag: 1=rev 0=normal
  99.  61234  EF32    0=BREAK 128=NO_BREAK
  100.  61236  EF34+    Error trap - 0/basic or use adr
  101.  61240  EF38    Power setting 0=cont.
  102.  61241  EF39    Full/Half Duplex (255=full)
  103.  61242  EF3A    Echo to Lpt:
  104.  61243  EF3B    1= LF,0=LF 0FF
  105.  61244-61250    TELCOM parameter
  106.  61250  EF42
  107.  61252  EF44    Orig/Ans mode 0=Orig  non-0=Ans
  108.  61257  EF49+    CALL target address
  109.  61266  EF52++    Code for OUT command
  110.  61269  EF55++    Code for INP commpnd
  111.  61280  EF60    Output flag  1=Lpt 0=Lcd
  112.  61285  EF65+    Holds line # being executed
  113.  61287  EF67+    Holds start adrs of BASIC pgm
  114.  61291  EF6B    End of BASIC stmt marker
  115.  61292  EF6C    Holds tokenized BASIC line
  116.  61296  EF70    Holds line from CALL21750
  117.  61556  F074    F1 - Table 1
  118.  61572  F084    F2 - Table 1
  119.  61588  F094    F3 - Table 1
  120.  61604  F0A4    F4 - Table 1
  121.  61620  F0B4    F5 - Table 1
  122.  61636  F0C4    F6 - Table 1
  123.  61652  F0D4    F7 - Table 1
  124.  61668  F0E4    F8 - Table 1
  125.  61684  F0F4
  126.  61685  F0F5    F1 - Table 2
  127.  61701  F105    F2 - Table 2
  128.  61717  F115    F3 - Table 2
  129.  61733  F125    F4 - Table 2
  130.  61749  F135    F5 - Table 2
  131.  61765  F145    F6 - Table 2
  132.  61781  F155    F7 - Table 2
  133.  61797  F165    F8 - Table 2
  134.  61976  F218    Day of week
  135.  61977  F219    Day of month - low digit
  136.  61978  F21A    Day of month - high digit
  137.  61979  F21B    Month - low digit
  138.  61980  F21C    Month - high digit
  139.  61981  F21D    Year - low digit
  140.  61982  F21E    Year - high digit
  141.  61983  F21F    Counter - Decrements 150 to 1
  142.  61984  F220    Counter - Decrements 12 to 1
  143.  61985  F221    Counter - Power Down
  144.  62004  F234    ON COM GOSUB status
  145.  62005  F235+    Adr of line# to GOSUB for COM
  146.  62007  F237    ON TIME$ GOSUB status
  147.  62008  F238+    Adr of line# to GOSUB for TIME$
  148.  62010  F23A    ON KEY 1 GOSUB status
  149.  62011  F23B+    Adr of line# to GOSUB for KEY 1
  150.  62013  F23D    ON KEY 2 GOSUB status
  151.  62014  F23E+    Adr of line# to GOSUB for KEY 2
  152.  62016  F240    ON KEY 3 GOSUB status
  153.  62017  F241+    Adr of line# to GOSUB for KEY 3
  154.  62019  F243    ON KEY 4 GOSUB status
  155.  62020  F244+    Adr of line# to GOSUB for KEY 4
  156.  62022  F246    ON KEY 5 GOSUB status
  157.  62023  F247+    Adr of line# to GOSUB for KEY 5
  158.  62025  F249    ON KEY 6 GOSUB status
  159.  62026  F24A+    Adr of line# to GOSUB for KEY 6
  160.  62028  F24C    ON KEY 7 GOSUB status
  161.  62029  F24D+    Adr of line# to GOSUB for KEY 7
  162.  62031  F24F    ON KEY 8 GOSUB status
  163.  62032  F250+    Adr of line# to GOSUB for KEY 8
  164.  62034  F252    DIRECTORY OF FILE ENTRIES
  165.     Each enrty = 11 bytes. First byte is file attribute byte
  166.     Bit 7=1 if valid entry
  167.     Bit 6=1 if .DO file
  168.     Bit 5=1 if .CO file
  169.     Bit 4=1 if ROM file
  170.     Bit 3=1 if invisible
  171.     The next 2 bytes point to RAM storage area.
  172.     Last 8 bytes =filename no (.)
  173.  62034  F252    BASIC's file slot
  174.  62045  F25D    TEXT's file slot
  175.  62056  F268    TELCOM's file slot
  176.  62067  F273    ADDRSS's file slot
  177.  62078  F27E    SCHEDL's file slot
  178.  62089  F289    MSPLAN's file slot
  179.  62100  F294    UNSAVED BASIC PGRM's file slot
  180.  62111  F29F    PASTE BUFFER's file slot
  181.  62122  F2AA    BASIC EDITOR's file slot
  182.  62133  F2B5    user slot 1
  183.  62144  F2C0    user slot 2
  184.  62155  F2CB    user slot 3
  185.  62166  F2D6    user slot 4
  186.   |            |
  187.  62628  F4A4    user slot 46
  188.  62639  F4AF    End of directory flag
  189.  62651  F4BB+    Holds dir adrs of current BASIC program
  190.  62685-62695      IPL string
  191.  62700  F4EC+    Holds SP when power off occurs
  192.  62702  F4EE+    LOMEM - Adrs of 1st RAM byte
  193.  62711  F4F7    Holds offset into RST 7 jmp tbl
  194.  62715+     TOP
  195.  62717+        LEN
  196.  62719+        EXE
  197.  62727  F507    Branch table for RST 7 (48 sets of 2 bytes)
  198.  62727  F507  1    CLEAR vector
  199.  62729  F509  2    CLEAR x,HIMEM vector
  200.  62731  F50B  3    Keypress vector
  201.  62733  F50D  4    Keyscan vector
  202.  62735  F50F  5    LCD
  203.  62781  F53D 28    To/From Menu
  204.  62783  F53F+29    F6 TELCOM (Term) vector
  205.  62785  F541+30    F7 TELCOM (Term) vector
  206.  62789  F545+32    F8 TEXT (and Basic Editor)
  207.  62791  F547  1    Width a,b
  208.  62793  F549  2    Screen 1,x(0)
  209.  62795  F54B  3    Open/Save"crt:"(1)
  210.  62797  F54D  4    
  211.  62799  F54F  5    Open/Save"crt:"(2)
  212.  62801  F551  6    Open/Load"wand:"(1)
  213.  62803  F553  7    Open/Load"wand:"(2)
  214.  62805  F555  8    Open/Load"wand:"(3)
  215.  62807  F557  9    Open/Load"wand:"(4)
  216.  62809  F559 10    
  217.  62811  F55B 11    
  218.  62813  F55D 12    Lfiles(1)
  219.  62815  F55F 13    Lfiles(3)/dsko$=a$(2)/a$=dski$(0)
  220.  62817  F561 14    Lfiles(2)/dsko$=a$(1)
  221.  62819  F563 15    
  222.  62821  F565 16    
  223.  63058  F652+    line # where error occurred
  224.  63060  F654+    line # of last entered/listed
  225.  63062  F656+    mem adrs where error occurred
  226.  63064  F658+    address of "ON ERROR GOTO" line
  227.  63069  F65D+    line # where BREAK occurred
  228.  63073  F661+    points to 1st byte
  229.  63077  F665+    points to start of variable storage
  230.  63079  F667+    points to adrs for next variable data
  231.  63081  F669+    Holds location of first free byte in RAM
  232.  63285  F735    Holds MAXFILES value
  233.  63301  F745    File name #1(?)
  234.  63302-63310    Search file name
  235.  63311-63318      Found file name; (#2)
  236.  63332-63337    Each time digit
  237.  63408-64047    ALT/LCD Buffer
  238.  63433-63536    LSB/MSB Visible file adrs table
  239.  63537  F831+    Pointer into VisFilTbl for next address
  240.  63539-63548    Holds Filename being searched for by 28239 routine
  241.  63560  F848    Holds # of file under cursor
  242.  63561  F849    Holds # of visible entries -1
  243.  63574        Typical ALT/LCD PGM TOP
  244.  64048-64687    LCD screen 640 bytes
  245.  64756  FCF4    SOUND ON/OFF flag. ON=0 OFF=175
  246.  64771  FD03    TIC for kbd scan
  247.  64773  FD05    KBD matrix buf a/b (18 bytes)
  248.         Buf1   7   6   5   4   3   2   1   0    Buf2
  249.     ============================================
  250.  64773  FD05   L   M   N   B   V   C   X   Z    FD0E/64782
  251.     --------------------------------------------
  252.  64774  FD06   K   J   H   G   F   D   S   A    FD0F/64783
  253.     --------------------------------------------
  254.  64775  FD07   I   U   Y   T   R   E   W   Q    FD10/64784
  255.     --------------------------------------------
  256.            ?   >   <   "   :   ]
  257.  64776  FD08   /   .   ,   '   ;   [   P   O    FD11/64785
  258.     --------------------------------------------
  259.            *   &   ^   %   $   #   @   !
  260.  64777  FD09   8   7   6   5   4   3   2   1    FD12/64786
  261.     --------------------------------------------
  262.                        +   _   )   (
  263.  64778  FD0A  dwn up rght lft  =   -   0   9    FD13/64787
  264.     --------------------------------------------
  265.  64779  FD0B <cr> prt lbl pas esc tab del space FD14/64788
  266.     --------------------------------------------
  267.  64780  FD0C   F8  F7  F6  F5  F4  F3  F2  F1   FD15/64789
  268.     --------------------------------------------
  269.  64781  FD0D  brk     cap num cod grh ctl shf   FD16/64790
  270.     --------------------------------------------
  271.  64798  FD1E    # of keystrokes pending
  272.  64799  FD1F    Keyboard queue (64 bytes)
  273.  65188  FEA4+    Holds adrs of 8 byte pixel map
  274.  65196  FEAC+    Holds offset into map
  275.  65198      OFFSET INTO CIRCULAR LCD BUFFER (pos of "0")
  276.  65362-65535    Telcom buffer
  277.  
  278.