basic 7.0 --bload command----- for machine langage program

Started by dilbert, July 21, 2008, 05:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dilbert

this newbie(me) is trying too use the BLOAD basic command to load a  ML program in from disk to bank 0 at address 4608 or 1200 hex.  Monitor can load it ok. And SYS 4608 wil start the program running.

But for the life of me i can't get BLOAD to do it.

BLOAD "TAZB2",8,0,4608
or
10 BLOAD "TAZB2",8,0,4608

I have also tried BLOAD "TAZB2",D0,U8,B0,P4608

Everthing comes back as a syntacs error.



?????

Hershey

Quote from: dilbert on July 21, 2008, 05:05 AM
this newbie(me) is trying too use the BLOAD basic command to load a  ML program in from disk to bank 0 at address 4608 or 1200 hex.  Monitor can load it ok. And SYS 4608 wil start the program running.

But for the life of me i can't get BLOAD to do it.

BLOAD "TAZB2",8,0,4608
or
10 BLOAD "TAZB2",8,0,4608

I have also tried BLOAD "TAZB2",D0,U8,B0,P4608

Everthing comes back as a syntacs error.



?????

Hope This Helps
Took it right out of the COMMODORE 128 PROGRAMMER'S REFERENCE GUIDE


BLOAD
Load a binary file starting at the specified memory location
BLOAD "filename"[,Ddrive number][<ON!,U>device number] [,Bbank
number] [,Pstart address]
where:
• filename is the name of your file
• bank number selects one of the 16 BASIC banks (default memory configurations)
• start address is the memory location where loading begins
EXAMPLES:
BLOAD "SPRITES", B0, P3584 LOADS the binary file "SPRITES"
starting in location 3584 (in BANK 0).
BLOAD "DATA1", DO, U8, Bl, P4096 LOADS the binary file "DATA 1"
into location 4096 (BANK 1) from
Drive 0, unit 8.

Hershey
Hershey

hydrophilic

Your last attempt is the correct one:
Quote from: dilbert... BLOAD "TAZB2",D0,U8,B0,P4608

but you are getting SYNTAX ERROR in BASIC because this act destroys the vital BASIC information located in page 18 ($1200~$12FF).  This area contains pointers to the top of memory, a (temporary) pointer to the current location in the program, flags and line numbers for error trapping, sound parameters, and IRQ handling flags.

This area is normally not important in the ML monitor (exept for the interrupt-driven routines SOUND, PLAY, MOVSPR, COLLISION).  In short, you can not use the $1200 region with BASIC.  You should move the code up to $1300 or down to $0B00.

I hope this helps!

dilbert

thanks.  yup--  got into  the wrong place.  !! newbeeeee.!!!