nes-pascal

NES Runtime

English Português (Brasil)

The implemented runtime provides a small initialization sequence and a runtime-owned NMI handler for an NTSC NROM program. Its frame and controller APIs are:

nes.load_background() and direct initialization palette commands belong before nes.run; palette calls in procedures or after nes.run are queued instead. nes.wait_frame may appear in main-block loops and conditionals after nes.run, but not in procedures. The only user code executed by NMI is the single statically validated VBlank callback, when registered.

See VBlank cycle budget for current worst-case runtime costs, available callback headroom, and scalability limits.

See Target platform for the generated ROM format and hardware initialization behavior. See CPU memory for the physical RAM limit, reserved regions, user capacity, and generated memory-map artifact.