I would like to load the "test.p" program with the header "$1400"

You need an actual VIC.

Moderator: Moderators

Post Reply
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

I would like to load the "test.p" program with the header "$1400"

Post by funkheld »

Hi good afternoon.

I would like to load the "test.p" program with the header "$1400"
it doesn't work.
what have I done wrong here?

Thank you.
greeting

Code: Select all


!to "diskload.p", cbm

	*=8192
	setnam = $ffbd
	setlfs = $ffba
	open = $ffc0
	load = $ffd5
	
	lda #6
	ldx #<name
	ldy #>name
	jsr setnam
	
	lda #0
	ldy #8
	ldx #8
	jsr setlfs
	jsr open
	
	jsr load
	
	rts
	
name 
  !text "TEST.P" 
User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: I would like to load the "test.p" program with the header "$1400"

Post by srowe »

You don't want to call open, just setnam and setlfs. You should also set .A to zero otherwise the routine will perform a verify rather than a load.
funkheld
Vic 20 Devotee
Posts: 241
Joined: Tue Sep 10, 2019 4:23 am

Re: I would like to load the "test.p" program with the header "$1400"

Post by funkheld »

hello thanks.

wonderfull , is ok.

greeting.
Post Reply