Westpac Rescue Helicopter Service | Your support saves lives

Our Service fly’s four Westpac Rescue Helicopters from three bases, providing emergency aeromedical services to 1.5 million people across Northern NSW.

Westpac Rescue Helicopter Service

I have a number of *ancient* 8080 programs that were ported to CP/M and then abandoned in the CPMUG disks to die. Some of them would be... almost useful on a WP2. There's an intriguing calculator, and several small BASICs, and of course my personal obsession, FOCAL.

Any of them (even FOCAL) would be a step up from what's now available, which is nothin.

Not that I've got the time, but it's fun to think about. And this question had me roadblocked.

#wp2 #CPM #CPMUG #8080

Success!!!
I'm not sure the clone #z80 in the #wp2 groks "ld bc,(address)" which is a properly z80 thing to say.
Changed it to "ld hl, (address)
ld b,h
ld c,l" and it worked.

I have now confirmed that the stack is *below* the program area of 0xAC00-0xFFFF.
The techref says the stack area is from 0xA800 to 0xABFF which shows once again 5 minutes of RTFM can save hours of WTF. :-)
OTOH trusting Tandy docs? Not a good plan. <shrug>

I suppose, if I'm going to continue hammering (my head) on this, I should move my source over to linux from risc os.
It is possible that the risc os ZMAC builds broken binaries somehow. It looks fine in a hex dump, but the #wp2 has a large amount of magic and bs around it.

I know linux ZMAC can produce working wp2 binaries.

#zMac #linux #riscos

See this is what I mean about WP-2 programming:

I wanna know where the top of the stack is at program entry.
I took my runnable, working "hello world" prog:
Add int2hex code (known working library code)
call it properly (with the saved copy of the stack pointer)
continue as normal

Download the binary to the wp2... and it won't run.
download it to regular memory... won't run.
download it directly to ramdisk... won't run.

tpdd transfer it to memory or ramdisk... won't run

Why????
#wp2

I'm still amazed at how few rs232 line I use these days. The coco and the teletek have serial lines to my server, and of course the teletek has a serial line to its terminal. A free connection for the m100 and wp2 and that's it! Everything else is wifi or ethernet.

#rs232 #coco #cpm #teletek #m100 #wp2