This repository was archived by the owner on Sep 10, 2020. It is now read-only.
File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ print_str:
25
25
int 0x10 ; Print char from al (BIOS)
26
26
jmp . loop ; Keep looping
27
27
.exit:
28
- pop si
29
28
pop ax
29
+ pop si
30
30
ret ; Return from function
31
31
32
32
; halt
@@ -50,6 +50,8 @@ dd 0x00
50
50
start:
51
51
xor ax , ax ; Clear ax
52
52
cli
53
+ jmp 0x0000 :boiler_my_plates
54
+ boiler_my_plates:
53
55
mov ss , ax ; Segment bullshit
54
56
mov ds , ax
55
57
mov es , ax
@@ -154,9 +156,9 @@ strcmp:
154
156
.e:
155
157
mov dl , 0x01 ; Happy couple, still gay
156
158
.done:
157
- pop ax ; Goodbye!
158
- pop si
159
159
pop di
160
+ pop si
161
+ pop ax
160
162
ret
161
163
162
164
; clear_input
@@ -169,8 +171,8 @@ clear_input:
169
171
mov cx , 128 ; Set cx to 128
170
172
cld ; Go forwards
171
173
rep stosb ; Store zeroes until the end
172
- pop di
173
174
pop cx
175
+ pop di
174
176
ret ; Return
175
177
176
178
; shell
@@ -204,9 +206,9 @@ shell:
204
206
mov si , endl ; 0x0D, 0x0A, 0x00
205
207
call print_str ; Print the newline
206
208
call print_harmful ; Print that it's harmful
207
- pop si
208
- pop di
209
209
pop cx
210
+ pop di
211
+ pop si
210
212
jmp shell ; Initialize shell again
211
213
.delet:
212
214
cmp cx , 127 ; Check if it's the start of string
You can’t perform that action at this time.
0 commit comments