v3.0.6: RP2040 에뮬레이터 개선 — USB CDC, vendor화, 부팅 감지
- USB CDC 경로 복원: #define Serial Serial1 우회 제거 - rp2040js/avr8js/codemirror/xterm/monaco-editor vendor화 - /vendor 정적 라우팅 추가 (Express 5 catch-all 우회) - 부팅 완료 타임아웃 감지 (Serial 출력 없어도 8초 후 RAF 전환) - 리셋 시 Simulator 재생성으로 주변 장치 상태 초기화 - 시리얼 패널의 내부 메시지를 console.log로 이동
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) Uri Shaked and contributors
|
||||
export function avrInterrupt(cpu, addr) {
|
||||
const sp = cpu.dataView.getUint16(93, true);
|
||||
cpu.data[sp] = cpu.pc & 0xff;
|
||||
cpu.data[sp - 1] = (cpu.pc >> 8) & 0xff;
|
||||
if (cpu.pc22Bits) {
|
||||
cpu.data[sp - 2] = (cpu.pc >> 16) & 0xff;
|
||||
}
|
||||
cpu.dataView.setUint16(93, sp - (cpu.pc22Bits ? 3 : 2), true);
|
||||
cpu.data[95] &= 0x7f; // clear global interrupt flag
|
||||
cpu.cycles += 2;
|
||||
cpu.pc = addr;
|
||||
}
|
||||
Reference in New Issue
Block a user