home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OS9_6X09
/
SOUNDUTILS
/
digitz_3_1.lzh
/
mydefs
< prev
Wrap
Text File
|
1992-01-11
|
3KB
|
106 lines
* Neat (as in tidy) stuff
type set prgrm+objct program object
revs set reent+1 executable reentrant
stacks equ 200 stack space
* Remember Basic09?
byte equ 1 a byte value
flag equ 1 sorta like boolean
char equ 1 single character
integer equ 2 an integer
longint equ 4 a long integer
lsn equ 3 a Logical Sector Number
path equ byte a path number
address equ integer an address
pointer equ integer a pointer
offset equ integer an offset
boolean equ flag picky, picky...
* Other defs
intclear equ ^intmasks
* Standard ASCII table w/character names
org 0
nul rmb 1 Null
soh rmb 1 Start of Header (for xmodem)
stx rmb 1 Start Of Text (soh equivalent for ymodem)
etx rmb 1 End Of Text
eot rmb 1 End Of Transmission (for xmodem)
enq rmb 1 ENQuiry (for real ASCII terminals)
ack rmb 1 positive ACKnowledge (for xmodem)
bel rmb 1 BELl (for impatient users)
bs rmb 1 BackSpace (for dyslexic users)
ht rmb 1 Horizontal Tab (for users with IBM keyboards)
lf rmb 1 Line Feed (for users with real ASCII terminals)
vt rmb 1 Vertical Tab (for users with really real ASCII terminals)
ff rmb 1 Form Feed (for users with screens, cls)
cr rmb 1 Carriage Return (for users who want to move on)
so rmb 1 Shift Out
si rmb 1 Shift In
dle rmb 1 Data Link Escape (used for quoting in WXModem, maybe ZModem?)
dc1 rmb 1 Device Control 1 (aka xon)
dc2 rmb 1 Device Control 2 (open buffer)
dc3 rmb 1 Device Control 3 (aka xoff)
dc4 rmb 1 Device Control 4 (close buffer)
nak rmb 1 Negative AcKnowledge (for xmodem)
syn rmb 1 SYNchronizing character (soh equivalent for TeLink?)
etb rmb 1 End of Transmission Block
can rmb 1 CANcel (for *modem)
em rmb 1 End of Medium
sub rmb 1 SUBstitute
esc rmb 1 ESCape
fs rmb 1 File Separator
gs rmb 1 Group Separator
rs rmb 1 Record Separator
us rmb 1 Unit Separator
sp rmb 1 SPace
* Other names I just like to use
space equ sp space character
eor equ cr end of record
linefeed equ lf line feed
formfeed equ ff form feed
cls equ ff clear screen character
bell equ bel bell
tab equ ht Horizontal tab
comma equ ', comma
semicoln equ '; semi-colon
xon equ dc1 start transmission
xoff equ dc3 stop transmission
del equ 127 IBM's DELete key
dash equ '- a dash
dashhelp equ dash*256+'? the -? character codes
mupper equ $5f uppercase mask
mlower equ $20 lowercase mask
bit0 equ 1
bit1 equ bit0*2
bit2 equ bit1*2
bit3 equ bit2*2
bit4 equ bit3*2
bit5 equ bit4*2
bit6 equ bit5*2
bit7 equ bit6*2
mask0 equ ^bit0
mask1 equ ^bit1
mask2 equ ^bit2
mask3 equ ^bit3
mask4 equ ^bit4
mask5 equ ^bit5
mask6 equ ^bit6
mask7 equ ^bit7
org 0
stdin rmb 1 standard input
stdout rmb 1 standard output
stderr rmb 1 standard error