wozmon: make some room
This commit is contained in:
@@ -106,7 +106,8 @@ void wozmon() {
|
|||||||
uint32_t cur_addr = 0;
|
uint32_t cur_addr = 0;
|
||||||
uint32_t cur_data = 0;
|
uint32_t cur_data = 0;
|
||||||
|
|
||||||
char inbuf[64] = {};
|
char inbuf[64];
|
||||||
|
inbuf[0] = 0;
|
||||||
char* inptr = inbuf;
|
char* inptr = inbuf;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
14
wozmon.s
14
wozmon.s
@@ -96,19 +96,13 @@ _ZN12_GLOBAL__N_114WriteHexNibbleEh:
|
|||||||
.global main
|
.global main
|
||||||
.type main, @function
|
.type main, @function
|
||||||
main:
|
main:
|
||||||
|
movw $0x8000, %sp
|
||||||
movw %sp, %bp
|
movw %sp, %bp
|
||||||
subw $76, %sp
|
subw $76, %sp
|
||||||
|
movb $0, -64(%bp)
|
||||||
leaw -64(%bp), %di
|
leaw -64(%bp), %di
|
||||||
movw $64, %ax
|
xorw %si, %si
|
||||||
pushw %ax
|
movw %si, -70(%bp)
|
||||||
xorw %ax, %ax
|
|
||||||
movw %ax, %es
|
|
||||||
pushw %ax
|
|
||||||
pushw %di
|
|
||||||
call memset
|
|
||||||
addw $6, %sp
|
|
||||||
movw %es, %si
|
|
||||||
movw %es, -70(%bp)
|
|
||||||
.L18:
|
.L18:
|
||||||
#APP
|
#APP
|
||||||
;# 11 "wozmon.cc" 1
|
;# 11 "wozmon.cc" 1
|
||||||
|
Reference in New Issue
Block a user