home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / MRFiles / GS3DVPAK.ARC / GSAPPENDIX2 (.txt) < prev    next >
Encoding:
GEOS ConVerT  |  2019-04-13  |  8.5 KB  |  221 lines

  1. gsappendix2
  2. PRG formatted GEOS file V1.0
  3. CONVERTED WITH GEOSHELL V2.2
  4. Write Image V2.1
  5. geoWrite    V2.1
  6. @APPENDIX B
  7. @MESSAGES AND CONSTANTS
  8. As discussed in other parts of this manual, geoSHELL has some built-in text displaying routines. Of these routines, you have access to displaying messages to the user describing such things as errors or how your command might be progressing. It is always good to let the user know what is going on. The main routines for doing this is Message and OtherMessage. You will find yourself using OtherMessage the most, since Message is limited to only the built-in geoSHELL messages.
  9. OtherMessage needs to know where the message is that you wish to display. Point r0 at this null-terminated text string. One other thing it needs is a value loaded into the accumulator telling it how to display your text. You can indent from 1-7 spaces and also add trailing spaces and carriage returns. The routine Message also needs this information loaded into the accumulator. The following are the constants for this:
  10. IN_CR    = %10000000    ;initial carriage return.
  11.             ;otherwise begin at present
  12.         ;cursor location.
  13. TR_CR    = %01000000    ;carriage return after text.
  14.             ;otherwise leave cursor one
  15.             ;space past text.
  16. IN_ONE    = %00000001    ;one leading space
  17. IN_TWO    = %00000010    ;two leading spaces...
  18. IN_THREE    = %00000011    ;etc...
  19. IN_FOUR    = %00000100
  20. IN_FIVE    = %00000101
  21. IN_SIX    = %00000110
  22. IN_SEVEN    = %00000111
  23. TR_ONE    = %00001000    ;one trailing space
  24. TR_TWO    = %00010000    ;two trailing spaces...
  25. TR_THREE    = %00011000    ;etc...
  26. TR_FOUR    = %00100000
  27. TR_FIVE    = %00101000
  28. TR_SIX    = %00110000
  29. TR_SEVEN    = %00111000
  30. ;A typical section of a routine might look like this:
  31.     LoadW    r0,#textToDisplay    ;point to the text.
  32.     lda    #(IN_TWO|TR_CR)    ;insert 2 spaces, add a
  33.             ;carriage return.
  34.     jsr    OtherMessage    ;go display it.
  35. textToDisplay:
  36.     .byte    "This Text Will Be Displayed!",0
  37. You can also load the accumulator with a zero if you wish to 
  38. just print the text right where the cursor is and leave the cursor at the space following the last character that gets displayed on the screen. You will find yourself using this routine quite often.
  39. geoSHELL has some internal messages also that are accessible with the routine Message. Some of these messages are specific to certain routines and may not be of any benefit to you. However, there are also some that will be used quite frequently. You will notice in this listing the ones that look familiar and will realize the useful ones and the not so useful ones. In order to use these, you simply load the x register with the number of the message and load the accumulator just like you would for OtherMessage and then call Message.
  40. Here is a complete list of the built-in messages:
  41.     .byte    "Can't Display File!",0    ;#1
  42.     .byte    "Searching For",0    ;#2
  43.     .byte    "Loading...",0    ;#3
  44.     .byte    "Bad Parameter!",0    ;#4
  45.     .byte    "Deleting",0    ;#5
  46.     .byte    "On Drive"
  47.     .byte    "A",0    ;#6
  48.     .byte    "Copying",0    ;#7
  49.     .byte    "Drive "
  50.     .byte    "A",0    ;#8
  51.     .byte    "To Drive "
  52.     .byte    "A",0    ;#9
  53.     .byte    "Not Found!",0    ;#10
  54.     .byte    "Write Protect On!",0    ;#11
  55.     .byte    "Missing Disk?!",0     ;#12
  56.     .byte    "Too Many Asterisks!",0    ;#13
  57.     .byte    "Command is Corrupted!!",0    ;#14
  58.     .byte    "Insufficient Room On Disk!",0    ;#15
  59.     .byte    "Filename May Not Exceed",0    ;#16
  60.     .byte    "8 Char's!",0    ;#17
  61.     .byte    "11 Char's!",0    ;#18
  62.     .byte    "File Is Locked!!!",0    ;#19
  63.     .byte    "Is This A Command?",0    ;#20
  64.     .byte    "128 mode only",0    ;#21
  65.     .byte    "Not Available",0    ;#22
  66.     .byte    0    ;#23
  67.     .byte    "Cannot Run",0    ;#24
  68.     .byte    "No Matches Found",0    ;#25
  69.     .byte    "** Border Files **",0    ;#26
  70.     .byte    "** Non-GEOS Disk **",0    ;#27
  71.     .byte    "Date:   "
  72.     .byte    "01/"
  73.     .byte    "02/"
  74.     .byt
  75.     .byte    "91",0    ;#28
  76.     .byte    "Time:   "
  77.     .byte    "12:"
  78.     .byte    "00 "
  79.     .byte    "pm",0    ;#29
  80.     .byte    "geoSHELL V2.2",0    ;#30
  81.     .byte    "Copyright 1993 by Maurice Randall",0 ;#31
  82.     .byte    0    ;#32 unused
  83.     .byte    0    ;#33 unused
  84.     .byte    "Wrong Format",0    ;#34
  85.     .byte    "Problem Loading File!",0    ;#35
  86.     .byte    " is for 40 columns!",0    ;#36
  87.     .byte    " is for 128-40 columns!",0    ;#37
  88.     .byte    " is for 128-80 columns!",0    ;#38
  89.     .byte    " is for 128 mode!",0    ;#39
  90.     .byte    " is for 64 mode!",0    ;#40
  91.     .byte    " is not a GEOS file!",0    ;#41
  92.     .byte    " 0=Not Geos",0    ;#42
  93.     .byte    " 1=Basic   ",0    ;#43
  94.     .byte    " 2=Assembly",0    ;#44
  95.     .byte    " 3=Data    ",0    ;#45
  96.     .byte    " 4=System  ",0    ;#46
  97.     .byte    " 5=Desk Acc",0    ;#47
  98.     .byte    " 6=Applic  ",0    ;#48
  99.     .byte    " 7=App Data",0    ;#49
  100.     .byte    " 8=Font    ",0    ;#50
  101.     .byte    " 9=Printer ",0    ;#51
  102.     .byte    "10=64Input ",0    ;#52
  103.     .byte    "11=Disk Drv",0    ;#53
  104.     .byte    "12=Sys Boot",0    ;#54
  105.     .byte    "13=Temp    ",0    ;#55
  106.     .byte    "14=AutoExec",0    ;#56
  107.     .byte    "15=128Input",0    ;#57
  108.     .byte    "16=???     ",0    ;#58
  109.     .byte    "17=GW Doc  ",0    ;#59
  110.     .byte    "   ???     ",0    ;#60
  111.     .byte    0    ;#61 reserved
  112.     .byte    0    ;#62 reserved.
  113.     .byte    "21=TransCom",0    ;#63
  114.     .byte    "  SubDir   ",0    ;#64 reserved.
  115.     .byte    "  SPLAT!!! ",0    ;#65
  116.     .byte    0    ;#66 reserved.
  117.     .byte    0    ;#67 reserved.
  118.     .byte    0    ;#68 reserved.
  119.     .byte    0    ;#69 reserved.
  120.     .byte    0    ;#70 reserved.
  121.     .byte    "    0  KBytes Free",0    ;#71
  122.     .byte    "This Is A Startup Command!",0    ;#72
  123.     .byte    "Partition Not Compatible!",0    ;#73
  124.     .byte    "Unknown To Device!",0    ;#74
  125.     .byte    "Unable To Rename File!",0    ;#75
  126.     .byte    "Drive "
  127.     .byte    "D Not Available!",0    ;#76
  128.     .byte    "-- Drive Selected --",0    ;#77
  129.     .byte    "Printer Unavailable!",0    ;#78
  130.     .byte    "Startup File Too Large!",0    ;#79
  131.     .byte    "Parent Application",0    ;#80
  132.     .byte    "Double-Sided Disk!",0    ;#81
  133.     .byte    "Bad Directory Header?!",0    ;#82
  134.     .byte    "Can't Find Main Loop!",0    ;#83
  135.     .byte    "Sub-Dir Command Failed!!!",0    ;#84
  136.     .byte    "Exec File Too Large!",0    ;#85
  137.     .byte    "-- Partition Selected --",0    ;#86
  138.     .byte    "Printer:",0    ;#87
  139.     .byte    "Input:",0    ;#88
  140.     .byte    0    ;#89
  141.     .byte    0    ;#90
  142.     .byte    0    ;#91
  143.     .byte    0    ;#92
  144.     .byte    0    ;#93
  145.     .byte    0    ;#94
  146.     .byte    0    ;#95
  147.     .byte    0    ;#96
  148.     .byte    0    ;#97
  149.     .byte    0    ;#98
  150.     .byte    0    ;#99
  151.     .byte    0    ;#100
  152.     .byte    0    ;#101
  153.     .byte    0    ;#102
  154.     .byte    0    ;#103
  155.     .byte    0    ;#104
  156.     .byte    0    ;#105
  157.     .byte    0    ;#106
  158.     .byte    0    ;#107
  159.     .byte    0    ;#108
  160.     .byte    0    ;#109
  161.     .byte    0    ;#110
  162.     .byte    0    ;#111
  163.     .byte    0    ;#112
  164.     .byte    0    ;#113
  165.         ;(used for the time display)
  166.     .byte    "Time:   "
  167.     .byte    "12:"
  168.     .byte    "00 :"
  169.     .byte    "00 "
  170.     .byte    "pm",0    ;#114 
  171.     .byte    "A:",160,0    ;#115
  172.     .byte    "B:",160,0    ;#116
  173.     .byte    "C:",160,0    ;#117
  174.     .byte    "D:",160,0    ;#118
  175.     .byte    0    ;#119 reserved
  176.     .byte    0    ;#120 reserved
  177. UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
  178.     .byte    0    ;#121 reserved
  179.     .byte    0    ;#122 reserved
  180.     .byte    0    ;#123 reserved
  181.     .byte    "1541  ",0    ;#124
  182.     .byte    "1571  ",0    ;#125
  183.     .byte    "1581  ",0    ;#126
  184.     .byte    "RAM 41",0    ;#127
  185.     .byte    "RAM 71",0    ;#128
  186.     .byte    "RAM 81",0    ;#129
  187.     .byte    "SHDW41",0    ;#130
  188.     .byte    "SHDW71",0    ;#131
  189.     .byte    "SHDW81",0    ;#132
  190.     .byte    "RL1581",0    ;#133
  191.     .byte    "RL NTV",0    ;#134
  192.     .byte    "GW RAM",0    ;#135
  193.     .byte    "----  ",0    ;#136
  194.     .byte    "???   ",0    ;#137
  195.     .byte    "HD1581",0    ;#138
  196.     .byte    "HD NTV",0    ;#139
  197.     .byte    "HD1541",0    ;#140 unknown?
  198.     .byte    "HD1571",0    ;#141 unknown?
  199.     .byte    "FD1581",0    ;#142
  200.     .byte    "HD1581",0    ;#143
  201.     .byte    "RD1581",0    ;#144
  202.     .byte    "RL1581",0    ;#145
  203.     .byte    "FD NTV",0    ;#146
  204.     .byte    "HD NTV",0    ;#147
  205.     .byte    "RD NTV",0    ;#148
  206.     .byte    "RL NTV",0    ;#149
  207.     .byte    0    ;#150 reserved
  208.     .byte    "Exit To Drive A Or B!",0    ;#151
  209.     .byte    "SEQUENTIAL",0    ;#152
  210.     .byte    "VLIR",0    ;#153
  211.     .byte    "???",0    ;#154
  212. @-- NOTES --
  213. The geoSHELL Programmer's Development Package    B-
  214. @-- NOTES --
  215. The geoSHELL Programmer's Development Package    B-PAGE
  216. 0    ;#69 reserved.
  217.     .byte    0    ;#70 reserved.
  218.     .byte    "    0  KBytes Free",0    ;#71
  219.     .byte    "This Is A Startup Command!",0    ;#
  220. The geoSHELL Programmer's Development Package    B-PAGE
  221.