Moved print_space to vwf.c

This commit is contained in:
jeffman 2017-04-11 17:39:56 -04:00
parent b46539dd34
commit 72f37b4dfb
4 changed files with 9 additions and 19 deletions

View File

@ -177,3 +177,9 @@ void copy_tile_up(int x, int y)
{
copy_tile(x, y, x, y - 2);
}
void print_space(WINDOW *window)
{
byte space = 0x50;
weld_entry(window, &space);
}

View File

@ -19,6 +19,7 @@ void clear_window(WINDOW *window);
void print_blankstr(int x, int y, int width);
void copy_tile(int xSource, int ySource, int xDest, int yDest);
void copy_tile_up(int x, int y);
void print_space(WINDOW *window);
extern unsigned short const m2_coord_table[];
extern int const m2_bits_to_nybbles[];

View File

@ -540,9 +540,10 @@ pop {r1-r4,pc}
//==============================================================================
// Print a space before the Greek letter
d3934_print_space:
push {lr}
push {r2-r3,lr}
mov r0,r4
bl print_space
pop {r2-r3}
// Clobbered code
ldrb r1,[r3,1]

View File

@ -61,21 +61,3 @@ pop {r4-r7}
pop {r2}
bx r2
.pool
//==============================================================================
// void print_space(WINDOW* window)
// In:
// r0: window pointer
//==============================================================================
// - prints a space character to window
print_space:
push {r0-r3,lr}
add sp,-4
mov r1,0x50
str r1,[sp,0]
mov r1,sp
bl weld_entry
add sp,4
pop {r0-r3,pc}