forked from arti/vt1200
Four-config A/B (IRQ wiring kept in all four; both mc68681 edits reverted in cfg 4): the console line and L3FA6E4B0's return are identical (HOST PORT - 15 / 6) in cfg 1-4. Verdict: PRE-EXISTING. Neither timing edit causes or relocates the failure. Methodology correction: hp_ret.lua's labels were on the wrong rets addresses. The real returns are L3FA6E4B0 -> 6, L3FA71BC0 -> 0x00900040, L3FA753D0 -> 0x00000408, L3FA767E0 -> 0. hp_ret2.lua fixes the addresses. What 6 is: not a device code. L3FA6E4B0 reduces five descriptor fields (struct+0x60/ 0x80/0xa0/0xc0/0xe0, written from the four sub-test calls) to a 5-bit value; 6 = 0b00110 = "L3FA71BC0 nonzero, L3FA753D0 nonzero". The caller turns any nonzero into 0x400, which the dispatcher maps to HOST PORT - 15. Flagged: L3FA753D0 returns 0x408 while all its own checks pass, so "nonzero" != "failed its checks"; polarity unresolved. Leads: COUNTER_READY is set by the firmware's own Start-Counter-Command read (reg 0x0E), is not in IMR, and is not handled by the ISR -- not the cause. The DUART clock (3.6864 MHz) could not be confirmed from the service guide. Variant MAME files kept in harness/mame/mame_edits/. Regression holds.
26 lines
1.0 KiB
Bash
Executable File
26 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# hp_ab.sh <label> -- build the current MAME tree and report the L3FA71BC0
|
|
# return value (hp_ret.lua) and the console transcript (cap.lua).
|
|
set -e
|
|
HERE=$(cd "$(dirname "$0")" && pwd)
|
|
M=/home/arti/code/k-space/mame0289/vt1200
|
|
LABEL=${1:-cfg}
|
|
|
|
JOBS=8 "$HERE/build.sh" >/dev/null
|
|
cd "$HERE"
|
|
echo "== $LABEL =="
|
|
export VT1200_VRAM=1 VT1200_BOARD_MODEL=handshake VT1200_BOARD_BUSY_TICKS=2
|
|
export VT1200_BOARD_SWITCH="0640000D:70:70" VT1200_DUART=1 VT1200_DUART_SEL=1
|
|
|
|
rm -f debug.log
|
|
timeout 300 "$M" vt1200 -rompath roms -video none -sound none -nothrottle \
|
|
-debug -debugger none -debuglog -autoboot_script "$HERE/hp_ret.lua" -autoboot_delay 0 >/dev/null 2>&1 || true
|
|
echo "-- returns (hp_ret) --"
|
|
grep -v "Breakpoint\|^Currently\|^MAME" debug.log | grep -v '^$' | head -12
|
|
|
|
rm -f debug.log
|
|
CAP_MAX=900 timeout 300 "$M" vt1200 -rompath roms -video none -sound none -nothrottle \
|
|
-debug -debugger none -debuglog -autoboot_script "$HERE/cap.lua" -autoboot_delay 0 >/dev/null 2>&1 || true
|
|
echo "-- console --"
|
|
grep PRINT debug.log | head -6
|