사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/ewrogers/megadev-skills --skill megadev-hardware시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Megadev hardware
Identify the specific hardware contract the project relies on, then build the smallest safe check for it. Preserve the user's game, renderer, audio policy and controls. Hardware Lab is a diagnostic example, not a game template to impose on their project.
Establish what is running
Record the build region/video mode, Megadev revision, toolchain and emulator/console setup. Inspect the selected ewrogers/megadev:latest source before teaching an unfamiliar register or API. Source citations in these references identify the tested baseline, not every future image.
Read machine contracts for CPU-specific maps, ownership and register access. Read verification when selecting tests or reporting results.
Check the contract, not just the screen
- Distinguish Main Work RAM, Sub Program RAM, shared Word RAM, PCM wave RAM and VDP memory. A pointer or free-byte count is not proof of access.
- In 2M mode, establish ownership before touching Word RAM. In 1M mode, account for each bank and its view separately. Stop executing replaceable code and quiesce callbacks before changing ownership or contents.
- Preserve BIOS workspace, code, stacks and active audio/graphics buffers. Test only explicitly reserved scratch space. A whole-RAM sweep in a running program is destructive to the program itself.
- Respect original-68000 alignment, access widths, ABI and interrupt contracts. Register reads can have side effects; do not use arbitrary memory scans on I/O.
- Keep command arguments stable until the acknowledgment protocol allows reuse. Ownership, acknowledgment and completion are separate facts.
- Keep base-console VDP, Z80 and bus constraints in view; the add-on does not remove them. Audio/ASIC/streaming implementations need their own measured system tests.
Use the Lab when useful
Hardware Lab is a self-contained disc with bounded scratch-pattern primitives, a 2M round trip, ping and module reloads. scripts/create_project.py creates a new copy without replacing existing files. Its optional automatic tour exercises runtime operations when emulator input automation is unavailable; it does not test physical controller mappings.
The Lab also supplies native tile graphics, a source/configuration build ID, Main/Sub startup checks, heartbeat and EverDrive EDIO detection. Detection establishes an interface, not the console model or host USB connectivity. The updated Pro firmware was verified retaining USB in CD mode and completing live guest handshakes. The initial 4.20 setup lost USB and required menu return for uploads. Check actual port availability; USB_LAB=0 disables guest polling on unsupported setups. Do not import cartridge startup flags or blocking disk initialization into a Megadev program.
Use scripts/inspect_disc.py for this data-only image's region/filesystem checks. The helper is not a full mixed-mode release validator. Building/bootstrapping a new game belongs to megadev-project; feasibility and lifetime budgets belong to megadev-planning. This skill owns the hardware assumptions and evidence, not a rival project architecture.
Report evidence precisely
Separate source-backed facts, host-model checks, actual CPU execution, emulator observations and physical-console results. A passed scratch buffer is not a complete RAM test. A nominal PAL flag is not measured frame timing. A data-only disc says nothing about CD-DA coexistence. State untested modes and peripherals explicitly, and choose a focused next proof rather than claiming the whole machine is qualified.
The readiness ROM also includes the testing skill's optional USB input hook. Its input view distinguishes logical pad/mouse state from the current physical source and shows independent pointer tracks. Use fresh capture frames and the host's sampled ACKs to test slot 1, slot 2, both mice and lease expiry. This is cooperating-ROM instrumentation; physical device qualification and the game's existing input owner remain separate.



