Mercurial > repos > blastem
comparison vdp.c @ 515:1495179d6737
Initial GDB remote debugging support. Lacks some features, but breakpoints and basic inspection of registers and memory work.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 08 Feb 2014 23:37:09 -0800 |
parents | b7b7a1cab44a |
children | 5196333b37a6 |
comparison
equal
deleted
inserted
replaced
514:f66c78cbdcaa | 515:1495179d6737 |
---|---|
195 int16_t x = ((context->vdpmem[address+ 6] & 0x3) << 8 | context->vdpmem[address + 7]) & 0x1FF; | 195 int16_t x = ((context->vdpmem[address+ 6] & 0x3) << 8 | context->vdpmem[address + 7]) & 0x1FF; |
196 uint16_t link = context->vdpmem[address+3] & 0x7F; | 196 uint16_t link = context->vdpmem[address+3] & 0x7F; |
197 uint8_t pal = context->vdpmem[address + 4] >> 5 & 0x3; | 197 uint8_t pal = context->vdpmem[address + 4] >> 5 & 0x3; |
198 uint8_t pri = context->vdpmem[address + 4] >> 7; | 198 uint8_t pri = context->vdpmem[address + 4] >> 7; |
199 uint16_t pattern = ((context->vdpmem[address + 4] << 8 | context->vdpmem[address + 5]) & 0x7FF) << 5; | 199 uint16_t pattern = ((context->vdpmem[address + 4] << 8 | context->vdpmem[address + 5]) & 0x7FF) << 5; |
200 //printf("Sprite %d: X=%d(%d), Y=%d(%d), Width=%u, Height=%u, Link=%u, Pal=%u, Pri=%u, Pat=%X\n", current_index, x, x-128, y, y-128, width, height, link, pal, pri, pattern); | 200 printf("Sprite %d: X=%d(%d), Y=%d(%d), Width=%u, Height=%u, Link=%u, Pal=%u, Pri=%u, Pat=%X\n", current_index, x, x-128, y, y-128, width, height, link, pal, pri, pattern); |
201 current_index = link; | 201 current_index = link; |
202 count++; | 202 count++; |
203 } while (current_index != 0 && count < 80); | 203 } while (current_index != 0 && count < 80); |
204 } | 204 } |
205 | 205 |