- [NEW] [ui] printhline() printvline()
- [NEW] stubs de debug en subsistemes - [NEW] [debugger] ruta de branches visibles en el desensamblat - [NEW] informació completa sobre opcodes, instruccions... en 6502_opcodes
This commit is contained in:
@@ -113,6 +113,19 @@ namespace ui
|
||||
SDL_RenderRect(ren, &rect);
|
||||
}
|
||||
|
||||
void printhline(int x1, int y, int x2, uint8_t color)
|
||||
{
|
||||
SDL_SetRenderDrawColor(ren, colors[color][0], colors[color][1], colors[color][2], 255);
|
||||
SDL_RenderLine(ren, float((offset_x+x1)*CHR_W)+3, float((offset_y+y)*CHR_H)+6, float((offset_x+x2)*CHR_W)+3, float((offset_y+y)*CHR_H)+6);
|
||||
}
|
||||
|
||||
void printvline(int x, int y1, int y2, uint8_t color)
|
||||
{
|
||||
SDL_SetRenderDrawColor(ren, colors[color][0], colors[color][1], colors[color][2], 255);
|
||||
SDL_RenderLine(ren, float((offset_x+x)*CHR_W)+3, float((offset_y+y1)*CHR_H)+6, float((offset_x+x)*CHR_W)+3, float((offset_y+y2)*CHR_H)+6);
|
||||
}
|
||||
|
||||
|
||||
void printchar(int x, int y, char chr, uint8_t color)
|
||||
{
|
||||
if (color != 255) SDL_SetRenderDrawColor(ren, colors[color][0], colors[color][1], colors[color][2], 255);
|
||||
|
||||
Reference in New Issue
Block a user