.tap files / Spectaculator

A place to discuss the ZX80's and ZX81's younger brother - the Sinclair ZX Spectrum
Post Reply
minimaltom
Posts: 9
Joined: Fri Jun 03, 2016 6:09 pm

.tap files / Spectaculator

Post by minimaltom »

I have this code (from Jonathan Caulwells games tutorial) in an .asm file and assemble it into a .bin file and a .tap file with option --tapbas for the basic loader to be included.

Code: Select all

	org 32000

       ld a,2              ; upper screen
       call 5633           ; open channel
loop   ld de,string        ; address of string
       ld bc,eostr-string  ; length of string to print
       call 8252           ; print our string
       jp loop             ; repeat until screen is full

string defb 'Tom is cool'
eostr  equ $
if I open the spectaculator with the command spectaculator hello.bin it doesn't load.

If I then drag the bin file directly into the spectaculator window it runs properly and Tom is cool Tom is cool... appears on the screen until it says scroll? This is cool!

But... If I open spectaculator with cmd spectaculator hello.tap, or drag the .tap file into the program window, it loads the tape but just gives me 'Bytes: Hello.tap

0 ok, 30:1"

Why doesn't it run the program printing tom is cool repeatedly?
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: .tap files / Spectaculator

Post by dr beep »

You need to start the code after loading.
It is now loaded at 30000 and furthr, nothing more.

Start the code with RANDOMIZE USR 30000 or PRINT USR 30000
Post Reply