I agree an updated HSDTA is needed. I tried changing the compre from unsigned to signed and this has improved things in most cases, certainly the bug as described is fixed but there are other faults or side effects too. My change is here:
Code: Select all
BGE HSDRTN ; QUIT IF SO (djrm: changed from unsigned BHS to signed BGE)
some test results showing expected and odd behaviour where the number of lines of output gets cut short before the index header line is repeated, or sometimes total output is truncated.
Code: Select all
>D 0 40
0 1 2 3 4 5 6 7 8 9 A B C D E F
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
>D C000 40
0 1 2 3 4 5 6 7 8 9 A B C D E F
C000 00 07 00 00 E2 A4 9C 2A 02 0D 02 0D 02 0D 02 0D .....=..........
C010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
C020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
C030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
>D FFE0 40
0 1 2 3 4 5 6 7 8 9 A B C D E F
FFE0 6E 9D BF E8 6E 9D BF E6 6E 9D BF E4 6E 9D BF E2 n...n...n...n...
>D FFE0 30
0 1 2 3 4 5 6 7 8 9 A B C D E F
FFE0 6E 9D BF E8 6E 9D BF E6 6E 9D BF E4 6E 9D BF E2 n...n...n...n...
>D FFF0 40
0 1 2 3 4 5 6 7 8 9 A B C D E F
FFF0 FF D4 FF D8 FF DC FF E0 FF E4 FF E8 FF EC F8 37 ...............7
0 1 2 3 4 5 6 7 8 9 A B C D E F
0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
>
CTRL-A Z for help | unix-socket | NOR | Minicom 2.8 | VT102 | Online 0:11 | unix#/tmp/mecb6809
I have a suspicion that there may be another bug lurking in there somewhere.
I've always used this crib sheet for deciding the appropriate branch instructions etc (link below), I find the layout ok.
My printout is very tatty and needs replacing.
https://archive.org/details/mc-6809-mc- ... ming-model
Another version with individual pages:
https://vtda.org/docs/computing/Motorol ... d_0291.pdf
This one can be printed out, double sided, two pages per sheet. If the pages are printed in this order and later cut in half it makes a neat A5 booklet. 1,3,2,4, 5,7,6,8, 9,11,10,12, 13,15,14,16
I needed to select landscape, and long edge duplex, fit to printable area for it to come out correctly.
The result is an a5 horizontal booklet stabled on the left edge.
extract showing nice layout of branch instructions:
Best regards, David.