|
Rocket 68
A Motorola 68000 CPU emulator in C
|
S-record and binary loader implementation. More...
Functions | |
| bool | m68k_load_srec (M68kCpu *cpu, const char *filename) |
| Load Motorola S-record data into CPU memory. | |
| bool | m68k_load_bin (M68kCpu *cpu, const char *filename, u32 address, u32 *size_out) |
| Load a raw binary file into CPU memory. | |
| bool | m68k_load_ihex (M68kCpu *cpu, const char *filename) |
| Load Intel HEX data into CPU memory. | |
S-record and binary loader implementation.
Load a raw binary file into CPU memory.
| cpu | CPU instance with bound memory. |
| filename | Path to a binary file. |
| address | Start address in emulated memory. |
| size_out | Optional output for the number of bytes written into emulated memory; may be NULL. Set to 0 when the file cannot be opened. A value smaller than the file size indicates the load stopped at the end of bound memory. |
| bool m68k_load_ihex | ( | M68kCpu * | cpu, |
| const char * | filename ) |
Load Intel HEX data into CPU memory.
| cpu | CPU instance with bound memory. |
| filename | Path to an Intel HEX file. |
Data records (type 00) honor the extended segment (02) and extended linear (04) base records. Start address records (03 and 05) set the program counter through m68k_set_pc. Parsing errors and checksum mismatches in individual records are reported to stderr, and the affected records are skipped.
| bool m68k_load_srec | ( | M68kCpu * | cpu, |
| const char * | filename ) |
Load Motorola S-record data into CPU memory.
| cpu | CPU instance with bound memory. |
| filename | Path to an S-record file. |
Parsing errors and checksum mismatches in individual records are reported to stderr, and the affected records are skipped.