zasm, for instance.antoniovillena wrote: ↑Mon Dec 11, 2017 1:32 amputs machine code inside BASIC loader. What assembler do that?Ast A. Moore wrote: ↑Sun Dec 10, 2017 3:18 pm I’m also quite confused. Is it compressing the data or simply puts machine code inside the BASIC loader? Because you can do both with many assemblers already.
tap8k. simple, small and fast loader
- Ast A. Moore
- Rick Dangerous
- Posts: 2641
- Joined: Mon Nov 13, 2017 3:16 pm
Re: tap8k. simple, small and fast loader
Every man should plant a tree, build a house, and write a ZX Spectrum game.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
-
- Drutt
- Posts: 17
- Joined: Sat Dec 09, 2017 9:07 pm
Re: tap8k. simple, small and fast loader
I have Windows and I can't try.
-
- Drutt
- Posts: 17
- Joined: Sat Dec 09, 2017 9:07 pm
Re: tap8k. simple, small and fast loader
I have released a version that includes shrinkler compressor, developped here.
https://github.com/antoniovillena/zx7b/ ... /shr8k.asm
So from a input binary file assembled with org $8000 you will have a compressed TAP file like this:
https://github.com/antoniovillena/zx7b/ ... r/demo.tap
https://github.com/antoniovillena/zx7b/ ... /shr8k.asm
So from a input binary file assembled with org $8000 you will have a compressed TAP file like this:
https://github.com/antoniovillena/zx7b/ ... r/demo.tap
Re: tap8k. simple, small and fast loader
Has it been tested on real hardware (48k,128k,+3) Just curious because a lot of these loaders that perform seemingly fine in emulation have issues on the real thing.
I must confess I never really thought about a better loader than what zeus/pasmo gives you but fair play there appears to be scope for improvement over what the assemblers can give us. I am just concerned if it will work on real hardware.
I must confess I never really thought about a better loader than what zeus/pasmo gives you but fair play there appears to be scope for improvement over what the assemblers can give us. I am just concerned if it will work on real hardware.
-
- Drutt
- Posts: 17
- Joined: Sat Dec 09, 2017 9:07 pm
Re: tap8k. simple, small and fast loader
The program fails if you have an interface that moves the basic. A spectrum 48K with a betadisk interface moves the basic away from 23755. You should probably check PEEK 23635+256*PEEK 23636 in order to locate the start of your code.
If you need to know where your code is executing, i use this little trick:
If you need to know where your code is executing, i use this little trick:
Code: Select all
LocateProgram: XOR A ; SET Z FLAG
INC A ; RESET Z FLAG
CALL $1FC6 ; THIS CALL TO THE ROM CONTAINS THESE INSTRUCTIONS. POP HL, RET Z, JP (HL).
Mycode: ... ; AT THIS POINT, HL CONTAINS THE ADDRESS OF THIS INSTRUCTION