Search found 2098 matches

by dr beep
Wed May 01, 2024 11:06 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

If it is a problem of timeout waiting for a signal, a trick maybe to wait for the signal in the "pre loading" setup part, and immediately jump to the loop as soon as the signal is detected! (code size there do not count :)) That is exactly what I am doing, except the signal of the cassetteport is n...
by dr beep
Wed May 01, 2024 8:16 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

I had an idea how to solve the ROM-loader in the final step.

EightyOne does not seem to read the tape when not in the ROM.
So it might only work on real hardware.
by dr beep
Wed May 01, 2024 5:05 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

The program with the small loader never gets to the LD (HL),C since the ROM takes off the RET in IN-BYTE when tape is waiting for a signal. The IN-BYTE must be customized too for a loader. ;; IN-BYTE L034C: LD C,$01 ; prepare an eight counter 00000001. ;; NEXT-BIT L034E: LD B,$00 ; set counter to 25...
by dr beep
Wed May 01, 2024 4:54 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

Ok, my findings sofar:

On EightyOne you can only get it a bit working when using WAV-loader.
With .P and .TZX EightyOne uses a different loading trick.

Even with WAV I don't return to the loader I defined (yet).
by dr beep
Wed May 01, 2024 3:04 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

D was set to same highbyte as RET-address and test in ROM sees that as a stop in loading.
After the LDIR I did a INC D and now tape stays in loader.

Next step is actual loading.
by dr beep
Wed May 01, 2024 1:56 am
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

I put a startaddress on the stack, therefore the stack comes at 43fe. Then the loader will overwrite first byte with RET
by dr beep
Tue Apr 30, 2024 9:38 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

I was thinking of this loader: START: call SET_FAST ; load operations to be managed in FAST mode ld sp, #4400-2 ; / ld hl, 0x4000 ; start loading data at 4000h ld hl, LOAD_PROG_BEG ; relocate loader to end of memory ld de, TARGET_LOAD ; / push de ; / ld bc, LOAD_PROG_END - LOAD_PROG_BEG ; / ldir ; ...
by dr beep
Tue Apr 30, 2024 9:12 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

So I have the loader starting, but how do I built my datablock to load?

I am using EightyOne to test the program.

Who can help with a working exemple?

The block to load is then 1010 bytes when my idea is working where at the end the stack will get a few more bytes.
by dr beep
Tue Apr 30, 2024 8:19 pm
Forum: Software
Topic: Block save / load
Replies: 38
Views: 10400

Re: Block save / load

I was thinking of this loader: START: call SET_FAST ; load operations to be managed in FAST mode ld sp, #4400-2 ; / ld hl, 0x4000 ; start loading data at 4000h ld hl, LOAD_PROG_BEG ; relocate loader to end of memory ld de, TARGET_LOAD ; / push de ; / ld bc, LOAD_PROG_END - LOAD_PROG_BEG ; / ldir ; _...
by dr beep
Tue Apr 30, 2024 7:47 pm
Forum: Sinclair Misc
Topic: It seems we are very popular!
Replies: 2
Views: 182

Re: It seems we are very popular!

The forum was slow this weekend.