-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.asm
More file actions
61 lines (51 loc) · 910 Bytes
/
Copy pathui.asm
File metadata and controls
61 lines (51 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
draw_interface:
mov ax, 0x0013
int 0x10
call draw_background
call draw_android_logo
call draw_menu
ret
draw_background:
mov ax, 0xA000
mov es, ax
xor di, di
mov cx, 320*200
mov al, 0x01
rep stosb
ret
draw_android_logo:
mov si, android_logo
mov cx, 100
mov dx, 20
call draw_image
ret
draw_menu:
mov si, menu_title
mov cx, 120
mov dx, 130
call draw_string
mov si, menu_item1
mov cx, 120
mov dx, 150
call draw_string
mov si, menu_item2
mov cx, 120
mov dx, 165
call draw_string
ret
draw_image:
ret
draw_string:
mov ah, 0x0E
.loop:
lodsb
test al, al
jz .done
int 0x10
jmp .loop
.done:
ret
android_logo db 0
menu_title db "Select Android to boot:",0
menu_item1 db "1. Android x86",0
menu_item2 db "2. Recovery Mode",0