Mercurial > hg > Members > kono > nitros9-code
view lib/alib/mktemp.a @ 2668:07441dfebc27 lwtools-port
Make tocgen build with lwasm
lwasm does not treat a trailing colon as part of the symbol name. Removed
trailing colons on symbol references.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 10 Jun 2012 13:35:44 -0600 |
parents | 7d70b7e1cb21 |
children | aaba193af04f |
line wrap: on
line source
****************************************** * * This subroutine creates a temorary filename * by adding a "." and a 2digit hex value based * on the process id. * IMPORTANT: there must be room after the filename * for at least 6 bytes!! Filename must be variable * area, not parameter or program sections!!! * OTHER MODULES NEEDED: BIN_HEX * ENTRY: X= filename * EXIT: no registers (expect cc) modified * filename ends in ".processid",$0d nam Make Unique Filename ttl Assembler Library Module psect MKTEMP,0,0,0,0,0 MKTEMP: pshs d,x,y OS9 F$PrsNam find end of name tfr y,x lda #'. sta ,x+ put "." in name OS9 F$ID tfr a,b convert to 4 digit hex lbsr BIN2HEX std ,x++ lda #$0d end name with cr sta ,x puls d,x,y,pc endsect