Code Oops! see below:
From: "Dwight K. Elvey"
<dwightk.elvey(a)amd.com>
Hi
Here is the code I have so far. I've shortened it a
---snip---
BOOTSTRP.ASM
; 42 BYTE BOOTSTRAP LOADER WITH INIT FOR 8250
; INTENDED FOR THE H89 BUT MAY ASLO WORK ON H8.
ORG 2300H
LDR: XRA A
OUT LCNTL ; LINE CONTROL
OUT IER ; NO INTERRUPTS
OUT MCNTL ; INIT MODEM CONTROL
DCR A ; SHOULD BE 'MVI A, 80H' BUT 0FFH OK?
OUT LCNTL
MVI A, 0CH ; 9600 BAUD
OUT DVL
XRA A
OUT DVH
MVI A, 07H ; 8 BIT 2 STOPS
OUT LCNTL
IN LSTAT
IN RX ; CLEAR ANY JUNK
LXI H, 2400H ; DEPENDS ON SIZE (TO BE DETERMINED)
LDR1: IN LSTAT
ANI 01
JZ LDR1 ; WAIT FOR CHAR
IN RX
MOV M,A
DCX H
JMP LDR ; ADDRESS TO BE OVER WRITTEN BY CODE LOADED
should be:
JMP LDR1 ; ADDRESS TO BE OVER WRITTEN BY CODE LOADED
Later
Dwight