-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathestructuras.asm
More file actions
executable file
·92 lines (75 loc) · 2.77 KB
/
estructuras.asm
File metadata and controls
executable file
·92 lines (75 loc) · 2.77 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
;################################################################################
;# Título: Estructuras - Trabajo Práctico #
;# #
;# Versión: 1.1 Fecha: 29/01/2016 #
;# Autor: F.POSE #
;# Compilación: Linkear junto al proyecto principal #
;# Uso: - #
;# ------------------------------------------------------------------------ #
;# Descripción: #
;# Estructuras que utilizo para el trabajo práctico - Año: 2015 #
;# ------------------------------------------------------------------------ #
;# Revisiones: #
;# 1.0 | 29/01/2016 | F.POSE | Original #
;# 2.0 | 29/01/2016 | F.POSE | Agregué la estructura TSS, Contexto y Tarea #
;# 2.0 | 29/01/2016 | F.POSE | estructuras.asm completo (No modificar) #
;# #
;################################################################################
BITS 32
;################################################################################
; Sección: bssE
;################################################################################
SECTION .bssE
;################################################################################
; Estructura: Contexto de la tarea
;################################################################################
struc Contexto
.ESP0: resd 1
.posterior_ESP0: resd 1
.CR3: resd 1
.ESP: resd 1
.SS: resw 1
.SS0: resw 1
.size:
ENDSTRUC
;################################################################################
; Estructura: Estructura TSS IA-32
;################################################################################
STRUC EstructuraTSS ;TSS-IA32
.reg_BL: resw 2 ; Back link.
.reg_ESP0: resd 1 ; ESP0
.reg_SS0: resw 2 ; SS0
.reg_ESP1: resd 1 ; ESP1
.reg_SS1: resw 2 ; SS1
.reg_ESP2: resd 1 ; ESP2
.reg_SS2: resw 2 ; SS2
.reg_CR3: resd 1 ; CR3
.reg_EIP: resd 1 ; EIP
.reg_EFLAGS: resd 1 ; EFLAGS
.reg_EAX: resd 1 ; EAX
.reg_EBX: resd 1 ; EBX
.reg_ECX: resd 1 ; ECX
.reg_EDX: resd 1 ; EDX
.reg_ESP: resd 1 ; ESP
.reg_EBP: resd 1 ; EBP
.reg_ESI: resd 1 ; ESI
.reg_EDI: resd 1 ; EDI
.reg_ES: resw 2 ; ES
.reg_CS: resw 2 ; CS
.reg_SS: resw 2 ; SS
.reg_DS: resw 2 ; DS
.reg_FS: resw 2 ; FS
.reg_GS: resw 2 ; GS
.size:
ENDSTRUC
;################################################################################
; Estructura: Estructura de la tabla de las tareas
;################################################################################
STRUC TareaTabla
.TSleep: resd 1
.IdCr3: resd 1
.rContexto: resd 1
.Prioridad: resb 1
.size:
ENDSTRUC
;/* ----------- Fin del archivo ----------- */