Search found 30 matches

by under4mhz
04 Sep 2022 04:49
Forum: PROGRAMMING
Topic: Reading/Writing files in CP/M
Replies: 2
Views: 1980

Re: Reading/Writing files in CP/M

That gives me a good overview of how cpm works.

From that I was able to find https://github.com/tstih/libcpm3-z80, which seems to implemented an open/close C interface which is what I was hoping for.
by under4mhz
28 Aug 2022 00:34
Forum: SOFTWARE
Topic: Z80 Rogue
Replies: 3
Views: 2007

Re: Z80 Rogue

I think it's a port of his "bootRogue" which is a game in the 512b PC boot sector. So it's fairly simple.

As an aside, the executable size of bsd game "hack" on Linux is 275K. Nethack is 2.9M. It doesn't look like a simple port would be feasible.
by under4mhz
27 Aug 2022 12:22
Forum: SOFTWARE
Topic: Z80 Rogue
Replies: 3
Views: 2007

Z80 Rogue

I was looking to the possibility of porting bsd games to z80 and I came across this. I didn't find it in a search on the board. Have you seen it before? Apparently there are people porting code to MTX.

It's fairly difficult, but then nethack always is.

https://github.com/nanochess/z80rogue
by under4mhz
17 Aug 2022 01:27
Forum: PROGRAMMING
Topic: Reading/Writing files in CP/M
Replies: 2
Views: 1980

Reading/Writing files in CP/M

Does anyone have some code on reading and writing files under CP/M? I found a fairly descriptive manual: Section 5 CP/M 2 System Interface , but ever since stackoverflow was created, I haven't the patience to reverse engineer manuals anymore. Actually, that might be a good stackoverflow question and...
by under4mhz
14 Aug 2022 04:14
Forum: SOFTWARE
Topic: New Demo: Lsl
Replies: 10
Views: 3843

Re: New Demo: Lsl

I have tried porting code from various other platforms to MTX, including TI-84 and HP calculators as well as from DOS, even Palm Pilot. It's just not possible. These devices have so much more cpu power and memory, and have a completely different paradigm for graphics (bitmap vs tiles), all my ports ...
by under4mhz
10 Aug 2022 04:06
Forum: SOFTWARE
Topic: New Demo: Lsl
Replies: 10
Views: 3843

Re: New Demo: Lsl

I used the screen shots from the DOS version and wrote my own engine from scratch. All the images are from the internet fans have ripped. I don't use anything from the original. The engine is very simple compared to the original AGI engine. There's no data files, it's all built using C structs stori...
by under4mhz
09 Aug 2022 03:33
Forum: SOFTWARE
Topic: New Demo: Lsl
Replies: 10
Views: 3843

Re: New Demo: Lsl

It's based on the DOS version. It has more colors and the screenshots were easily available on the internet.

There's no sound at the moment, but sound is easily added. Sound effects are the least interesting part of writing games (for me at least).
by under4mhz
07 Aug 2022 03:58
Forum: SOFTWARE
Topic: New Demo: Lsl
Replies: 10
Views: 3843

New Demo: Lsl

Just a demo I've been playing with to see what was possible and how difficult it would be.
Lsl2.png
Lsl2.png (23.78 KiB) Viewed 2514 times
Lsl1.png
Lsl1.png (21.18 KiB) Viewed 2514 times
by under4mhz
02 Aug 2022 01:29
Forum: PROGRAMMING
Topic: Interrupts in com files
Replies: 5
Views: 2584

Re: Interrupts in com files

Thanks, that worked. For anyone interested, the code for sdas (sdcc's assembler) is: .globl _vdu_isr ctc0 = 0x08 cfgctc: di im 2 ld a, #0xC5 out (ctc0), a ; Counter mode, interrupt, time constant follows. ld a, #1 out (ctc0), a ; Interrupt on every VDP pulse ld hl, #ijtbl ld a, l out (ctc0), a ; Int...
by under4mhz
01 Aug 2022 01:18
Forum: PROGRAMMING
Topic: Interrupts in com files
Replies: 5
Views: 2584

Re: Interrupts in com files

I've been mostly working on MSX, where the VDP interrupt is connected directly to the z80. I forgot about the CTC.

I don't suppose you have a code snippet to set up the CTC to pass on VDP interrupts?

I'd prefer to run the z80 in interrupt mode 1, if possible.