Why do I get this text instead of the text in upper left corner?

Do you live and breathe hexadecimal? Do you like speaking to hardware directly?

Moderator: Programming Moderators

TheSwedishLord
Posts: 17
Joined: Mon Aug 17, 2020 7:47 am

Re: Why do I get this text instead of the text in upper left corner?

Postby TheSwedishLord » Mon Aug 31, 2020 5:29 am

Ped7g wrote:
Mon Aug 31, 2020 12:02 am
Post the full source, let me try it myself.
(I'm contributor to sjasmplus project, so I have difficult time to asses what is simple/difficult for regular users, as my perception is skewed heavily by knowing the actual implementation - so for me example from regular users are often eye-opening experience... :) )
Possibly I have done some errors here but I can't even see the code loaded in debugger

Code: Select all

;;
;; Dev code
;;
        DEVICE ZXSPECTRUM128

        org  50000

Start:
        ld a, 65
        rst 16
        ret
Endprog                 EQU $

    savetap "test.tap",BASIC,"w/Autorun",Start, Endprog-Start 
    

Ped7g
Posts: 256
Joined: Mon Jul 16, 2018 7:11 pm

Re: Why do I get this text instead of the text in upper left corner?

Postby Ped7g » Mon Aug 31, 2020 4:36 pm

oh.. that's actually simple to explain. You give too much credit to the SAVETAP directive. It will not create the code/loader for you, the "BASIC" type just means the flag in the header so the the LOAD will treat it as BASIC program.

But I was talking about the library in examples: https://github.com/z00m128/sjasmplus/tr ... les/TapLib

So your code using that library could look like this:

Code: Select all

        DEVICE ZXSPECTRUM128, Start-1

        org  50000

Start:
        ld a, 65
        rst 16
        ret
Endprog                 EQU $

; alias "start" to fix bug in the TapLib.asm itself (*sigh* ... to be fixed in next release)
start EQU Start

        INCLUDE <TapLib/TapLib.asm>     ; adjust path depending on your drive
                                        ; or use `-Ipath/to/examples` to add include-path
        MakeTape ZXSPECTRUM128, "test.tap", "w/Autorun", Start, Endprog-Start, Start
now if you will add --lst and --lstlab to the command line, you can check in listing how that library from examples does create the BASIC loader with db/dw statements, and saving that as first BASIC block into TAP file, while your ld a,'A' will be stored as CODE block after that.


Who is online

Users browsing this forum: No registered users and 1 guest