Mercurial > hg > Members > kono > nitros9-code
view lib/alib/mktemp.as @ 3016:eb04ba1c507f
[PATCH 3/3] level2: Include ccbkrn in build again
From ec3a9e79eeb1a8bd3b703e4ea9c28ccbb2d641d5 Mon Sep 17 00:00:00 2001
---
level2/coco3/makefile | 24 ++++++++++++------------
level2/coco3/modules/makefile | 2 +-
2 files changed, 13 insertions(+), 13 deletions(-)
author | Brett Gordon <beretta42@gmail.com> |
---|---|
date | Wed, 29 Oct 2014 23:12:52 +0100 |
parents | 03f26e88b809 |
children |
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 section .text 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