|
For the life of me I can't seem to figure out on what I'm doing wrong trying to print stuff out to serial from cp/m executable by reading and writing to the asci registers directly. I am doing this to test some low level code the easy way, but can't seem to get it to output anything at all. Output from serial and the code is at https://gist.github.com/depili/c825dba578cce65b4b061dcb92d7b137 I have tried running the string write inside an infinite loop, but not even the leds on my serial adapter flash at all. Using the monitor and the O(ut) command to port 86 adds the character to the serial data stream. I have also tried to do the asci read routines under the monitor rom application, but can't get them to work there either. Must be doing something silly wrong, as asci lacks the easy master reset of SIO to get it into a known state |
Replies: 2 comments
|
The internal registers of the Z180 require 16 bit I/O. You can use the IN0 and OUT0 instructions instead of IN and OUT to achieve this. Thanks, Wayne |
|
Well, as I said, something really dumb, had the assembler in z80 mode as my previous project was on such hardware. Huge thanks. |
The internal registers of the Z180 require 16 bit I/O. You can use the IN0 and OUT0 instructions instead of IN and OUT to achieve this.
Thanks, Wayne