a2b.asm:;;;a2b -- convert ASCII binary number to 8-bit char in C
a2b.asm:;;;Entry Conditions: HL -> null terminated string
a2b.asm:;;;Exit Conditions: Carry clear, C=value
a2b.asm:;;;                 Carry set, error


a2d,asm:;;;a2d -- convert from ASCII to 16-bit HL
a2d.asm:;entry conditions: HL->null-terminated string
a2d.asm:;exit conditions: DE=number
a2d.asm:;                 HL->null
a2d.asm:;                 A destroyed
a2d.asm:;                 BC destroyed
a2d.asm:;		  Carry set = error
a2d.asm:;                 Carry clear = success


ah2i.asm:;AH2I -- convert ascii hex number to 16-bit int
ah2i.asm:;entry conditions: HL-> null-terimated string of hex 
ah2i.asm:;                       digits in ascii
ah2i.asm:;Exit conditions:  DE=16 bit int
ah2i.asm:;                  carry set on error

ah2i.asm:;AH2C -- convert ascii hex number to 8-bit int
ah2i.asm:;Entry Conditions: HL-> null-terminated string of hex 
ah2i.asm:;                       digits in ascii
ah2i.asm:;Exit Conditions: c=8bit value
ah2i.asm:;                 carry set on error


bin2asc.asm:;byte2a -- 8bit bin to ascii number
bin2asc.asm:;Entry Conditions: A=number
bin2asc.asm:;		   HL-> 4 byte buffer
bin2asc.asm:;Exit Conditions:  HL-> 4 byte buffer holds value in A as
bin2asc.asm:;                       ASCII decimal chars, null terminated
bin2asc.asm:;		   A destroyed


c2b.asm:;c2b -- 8bit value in C to ascii binary
c2b.asm:;entry conditions: C =value to convert
c2b.asm:;                  HL->8-byte buffer
c2b.asm:;exit conditions: A, BC destroyed
c2b.asm:;                  HL->buffer


c2h.asm:;c2h -- value in C to hex digits
c2h.asm:;Entry Conditions:  C=value
c2h.asm:;                   HL-> 2 byte buffer
c2h.asm:;Exit Conditions: C,A destroyed
c2h.asm:;                 HL-> hex digits in ASCII

c2h.asm:;c2hp -- value in C to hex digits, HL plussed
c2h.asm:;Entry Conditions:  C=value
c2h.asm:;                   HL-> 2 byte buffer
c2h.asm:;Exit Conditions: C,A destroyed
c2h.asm:;                 HL=HL+2

c2h.asm:;i2h  -- 16-bit value in BC to hex digits, HL preserved
c2h.asm:;Entry Conditions: BC=value
c2h.asm:;                  hl-> 4 byte buffer
c2h.asm:;Exit Conditions:  BC,A destroyed
c2h.asm:;                  HL-> hex digits in ASCII

c2h.asm:;i2hp -- 16 bit value in BC to hex digits, HL plussed
c2h.asm:;Entry Conditions: BC=value
c2h.asm:;                  hl-> 4 byte buffer
c2h.asm:;Exit Conditions:  BC,A destroyed
c2h.asm:;                  HL=original HL+4


int2asc.asm:;int2asc -- buffer gets 16-bit int as decimal in 5 ASCII chars
int2asc.asm:;Entry Conditions: BC=int
int2asc.asm:;                  HL-> 6 byte buf
int2asc.asm:;Exit  Conditions: HL-> 6 byte buf with number, null terminated
int2asc.asm:;		   all registers preserved

int2asc.asm:;int2a --  buffer gets 16-bit integer to decimal in 5 ASCII chars 
int2asc.asm:;Entry Conditions:  BC=int
int2asc.asm:;		    HL->6 byte buf
int2asc.asm:;Exit  Conditions:  A,BC,DE destroyed
int2asc.asm:;		    HL=HL+length of number
int2asc.asm:;                   buffer holds decimals of number null terminated


psuran.Asm:;***************************************	
psuran.asm:;* psuran23--pseudorandom # generator *
psuran.asm:;*   A=0 for next # in sequence       *
psuran.asm:;*   HL=varptr(X%), returns # in X%   *
psuran.asm:;* or                                 *
psuran.asm:;*   1<A<256 to re-seed sequence      *
psuran.asm:;*   HL=two lo bytes, A=hi byte       *
psuran.asm:;**************************************
psuran.Asm:;m4 -DRANSTANDALONE to make the standalone
psuran.Asm:;version that fits in the altbuf.


joy.asm:;JOY -- support an atari joystick on m100 parallel port
joy.asm:;Entry conditions: HL-> 5 byte block for results 
joy.asm:;exit conditions:  HL=original HL + 6
joy.asm:;                  A destroyed
joy.asm:;   block contains: button (1 if button pressed, else 0)
joy.asm:;                   up
joy.asm:;                   down
joy.asm:;                   right
joy.asm:;                   left


fixpower.asm:;fixpower
fixpower.asm:;when a .co file is running, the power-off timer doesn't
fixpower.asm:;get reset.
fixpower.asm:;fix timer before the .co exits so the m100 doesn't
fixpower.asm:;shut itself off immediately after.



