I have this ASM program from x16-programmers.
a prg is created with acme.exe.
How do you set the start address in the asm ?
load"float.prg",8 >>>>> is ok
how do you start prg?
Thanks.
Code: Select all
!to "float.prg", cbm
*=....???? How do you set the start address for the prg?
CHROUT = $ffd2
FOUT = $fe06
FMULTT = $fe21
FDIV = $fe24
CONUPK = $fe5a
MOVFM = $fe63
lda #4
sta $01
lda #<flt_two
ldy #>flt_two
jsr MOVFM
lda #<flt_g
ldy #>flt_g
jsr FDIV
lda #<flt_time
ldy #>flt_time
jsr CONUPK
jsr FMULTT
lda #<flt_time
ldy #>flt_time
jsr CONUPK
jsr FMULTT
jsr FOUT
; rom bank 4 (BASIC) contains the fp routines.
; FACC= g/2
; ARG = time
; FACC = g/2 * time
; again ARG = time
; FACC = g/2 * time * time
; to string
; print string in AY
sta $02
sty $03
ldy #0
loop:
lda ($02),y
beq done
jsr CHROUT
iny
bne loop
done:
rts
flt_g: !byte $84, $1c, $f5, $c2, $8f ; float 9.81
flt_time: !byte $83, $20, $00, $00, $00 ; float 5.0
flt_two: !byte $82, $00, $00, $00, $00 ; float 2.0