Changeset 555b171 in buchla-emu
- Timestamp:
- 07/20/2017 07:20:52 PM (7 years ago)
- Branches:
- master
- Children:
- e41c6b6
- Parents:
- ba36b71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/cpu.c
rba36b71 r555b171 26 26 bool cpu_verbose = false; 27 27 28 #define CYCLES 1029 30 #define VEC_SIZE 0x40028 #define CYCLES 70 29 30 #define APP_START 0x10000 31 31 32 32 #define RAM_START 0x0 … … 219 219 } 220 220 221 if (addr <= VEC_SIZE- 1) {221 if (addr <= APP_START - 1) { 222 222 return ram_data[addr]; 223 223 } … … 261 261 } 262 262 263 if (addr <= VEC_SIZE- 2) {263 if (addr <= APP_START - 2) { 264 264 return 265 265 ((uint32_t)ram_data[addr - 0] << 8) | … … 327 327 } 328 328 329 if (addr <= VEC_SIZE- 4) {329 if (addr <= APP_START - 4) { 330 330 return 331 331 ((uint32_t)ram_data[addr + 0] << 24) | … … 360 360 } 361 361 362 if (addr <= VEC_SIZE- 1) {362 if (addr <= APP_START - 1) { 363 363 ram_data[addr] = (uint8_t)val; 364 364 return; … … 392 392 } 393 393 394 if (addr <= VEC_SIZE- 2) {394 if (addr <= APP_START - 2) { 395 395 ram_data[addr + 0] = (uint8_t)(val >> 8); 396 396 ram_data[addr + 1] = (uint8_t)(val >> 0); … … 429 429 } 430 430 431 if (addr <= VEC_SIZE- 4) {431 if (addr <= APP_START - 4) { 432 432 ram_data[addr + 0] = (uint8_t)(val >> 24); 433 433 ram_data[addr + 1] = (uint8_t)(val >> 16); … … 450 450 m68k_pulse_reset(); 451 451 452 for (int32_t c = 0; c < 5; ++c) {452 while (true) { 453 453 m68k_execute(CYCLES); 454 454 hw_exec();
Note:
See TracChangeset
for help on using the changeset viewer.