-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathidle.asm
More file actions
40 lines (30 loc) · 941 Bytes
/
Copy pathidle.asm
File metadata and controls
40 lines (30 loc) · 941 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
; ==============================================================================
; TRABAJO PRACTICO 3 - System Programming - ORGANIZACION DE COMPUTADOR II - FCEN
; ==============================================================================
ORG 0x00016000 ;; TASK_IDLE_CODE
BITS 32
%include "imprimir.mac"
idle:
.loopear:
inc dword [numero]
cmp dword [numero], 0x4
jb .imprimir
.reset_contador:
mov dword [numero], 0x0
.imprimir:
; Imprimir 'reloj'
mov ebx, dword [numero]
add ebx, message1
imprimir_texto_mp ebx, 1, 0x0f, 49, 76
mov ebx, chirimbolo_open
imprimir_texto_mp ebx, 1, 0x0f, 49, 76-1
mov ebx, chirimbolo_close
imprimir_texto_mp ebx, 1, 0x0f, 49, 76+1
jmp .loopear
numero: dd 0x00000000
message1: db '|'
message2: db '/'
message3: db '-'
message4: db '\'
chirimbolo_open: db '('
chirimbolo_close: db ')'