Fixed 86Box stack issues
This commit is contained in:
parent
a29c6940d5
commit
4b581d497d
10 changed files with 1274 additions and 1243 deletions
|
|
@ -152,14 +152,14 @@ main_loop:
|
|||
pop ds
|
||||
|
||||
DEBUG 1
|
||||
ISADBG ISA_RED, 1
|
||||
ISADBG ISA_LEFT, 1
|
||||
|
||||
; Init du système GUI
|
||||
call gui_init_system
|
||||
|
||||
|
||||
DEBUG 2
|
||||
ISADBG ISA_RED, 2
|
||||
ISADBG ISA_LEFT, 2
|
||||
|
||||
; --- CRÉATION DYNAMIQUE DES BOUTONS ---
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ main_loop:
|
|||
GUI OBJ_SET_TEXT, ax, cs, str_option3
|
||||
|
||||
DEBUG 3
|
||||
ISADBG ISA_RED, 3
|
||||
ISADBG ISA_LEFT, 3
|
||||
|
||||
; Créer Slider (Drag)
|
||||
GUI OBJ_CREATE, OBJ_TYPE_SLIDER, 10, 100, 150, 12
|
||||
|
|
@ -197,7 +197,7 @@ main_loop:
|
|||
mov .value, 0xFADE
|
||||
|
||||
DEBUG 4
|
||||
ISADBG ISA_RED, 4
|
||||
ISADBG ISA_LEFT, 4
|
||||
|
||||
.loop:
|
||||
call gui_process_all
|
||||
|
|
|
|||
|
|
@ -20,45 +20,59 @@
|
|||
;
|
||||
; =============================================================================
|
||||
|
||||
%macro DEBUG 1
|
||||
GFX GOTOXY, 0, 0
|
||||
mov ax, %1
|
||||
call print_word_hex
|
||||
%endmacro
|
||||
%define DISABLE_DEBUGER
|
||||
|
||||
;
|
||||
; Debugger for 86Box
|
||||
;
|
||||
%define ISA_DBG_PORT 0x007a
|
||||
;
|
||||
%define ISA_RED 0
|
||||
%define ISA_GREEN 1
|
||||
%define ISA_RIGHT 2
|
||||
%define ISA_LEFT 3
|
||||
%define ISA_RESET 0xff
|
||||
%ifndef DISABLE_DEBUGER
|
||||
|
||||
%macro ISADBG 2
|
||||
push dx
|
||||
push ax
|
||||
mov dx, ISA_DBG_PORT
|
||||
mov al, byte %1
|
||||
out dx, al
|
||||
inc dx
|
||||
mov al, byte %2
|
||||
out dx, al
|
||||
pop ax
|
||||
pop dx
|
||||
%endmacro
|
||||
%macro DEBUG 1
|
||||
GFX GOTOXY, 0, 0
|
||||
mov ax, %1
|
||||
call print_word_hex
|
||||
%endmacro
|
||||
|
||||
%macro ISADBG_RESET 0
|
||||
push dx
|
||||
push ax
|
||||
mov dx, ISA_DBG_PORT
|
||||
mov al, ISA_RESET
|
||||
out dx, al
|
||||
pop ax
|
||||
pop dx
|
||||
%endmacro
|
||||
;
|
||||
; Debugger for 86Box
|
||||
;
|
||||
%define ISA_DBG_PORT 0x007a
|
||||
;
|
||||
%define ISA_RED 0
|
||||
%define ISA_GREEN 1
|
||||
%define ISA_RIGHT 2
|
||||
%define ISA_LEFT 3
|
||||
%define ISA_RESET 0xff
|
||||
|
||||
%macro ISADBG 2
|
||||
push dx
|
||||
push ax
|
||||
mov dx, ISA_DBG_PORT
|
||||
mov al, byte %1
|
||||
out dx, al
|
||||
inc dx
|
||||
mov al, byte %2
|
||||
out dx, al
|
||||
pop ax
|
||||
pop dx
|
||||
%endmacro
|
||||
|
||||
%macro ISADBG_RESET 0
|
||||
push dx
|
||||
push ax
|
||||
mov dx, ISA_DBG_PORT
|
||||
mov al, ISA_RESET
|
||||
out dx, al
|
||||
pop ax
|
||||
pop dx
|
||||
%endmacro
|
||||
%else
|
||||
%macro DEBUG 1
|
||||
%endmacro
|
||||
|
||||
%macro ISADBG 2
|
||||
%endmacro
|
||||
|
||||
%macro ISADBG_RESET 0
|
||||
%endmacro
|
||||
%endif
|
||||
|
||||
; -----------------------------------------------------------------------------------
|
||||
; PC components I/O ports
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue