Mercurial > repos > simple16
comparison src/main.c @ 33:eda4919d955f
Forgot to call controller_init
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 03 Apr 2016 19:03:11 -0700 |
parents | 78068060313a |
children | 6e7bfe83d2b0 |
comparison
equal
deleted
inserted
replaced
32:8642cb2ceb89 | 33:eda4919d955f |
---|---|
218 console context; | 218 console context; |
219 context.proc = alloc_cpu(10, sizeof(regions)/sizeof(memory_region), regions); | 219 context.proc = alloc_cpu(10, sizeof(regions)/sizeof(memory_region), regions); |
220 context.proc->system = &context; | 220 context.proc->system = &context; |
221 vdp_init(&context.video, 2); | 221 vdp_init(&context.video, 2); |
222 timer_init(&context.timer, 16); | 222 timer_init(&context.timer, 16); |
223 controller_init(&context.pads); | |
223 context.proc->port_handlers[PORT_CONTROLLER_1].read = controller_port_read; | 224 context.proc->port_handlers[PORT_CONTROLLER_1].read = controller_port_read; |
224 context.proc->port_handlers[PORT_CONTROLLER_2].read = controller_port_read; | 225 context.proc->port_handlers[PORT_CONTROLLER_2].read = controller_port_read; |
225 context.proc->port_handlers[PORT_FREQUENCY_A].write = frequency_port_write; | 226 context.proc->port_handlers[PORT_FREQUENCY_A].write = frequency_port_write; |
226 context.proc->port_handlers[PORT_FREQUENCY_B].write = frequency_port_write; | 227 context.proc->port_handlers[PORT_FREQUENCY_B].write = frequency_port_write; |
227 context.proc->port_handlers[PORT_FREQUENCY_C].write = frequency_port_write; | 228 context.proc->port_handlers[PORT_FREQUENCY_C].write = frequency_port_write; |