home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_26_1988_Transactor_Publishing.d64
/
prhmen.pal
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
453b
|
23 lines
100 sys 700 ;pal 64
110 .opt oo
120 ; "prhmen"
130 ;this routine prints the player's
140 ;men but could be used to represent
150 ;energy levels, strength, etc
160 ;
170 pnhmen =*
180 lda #<prnmen
190 ldy #>prnmen
200 jsr $ab1e ;print it
210 ;
220 ldx pmen ;get number of men
230 lda #"[209]" ;this char represents men
240 menlop =*
250 jsr $ffd2 ;print it
260 dex ;have we printed them all
270 bne menlop
280 rts
290 pmen .byte 5
300 prnmen .asc "men: "
310 .byte 0