2021-07-08 12:06:23 +02:00
|
|
|
{
|
|
|
|
"scenario_titre" : "Scénario de Nicolas H.",
|
|
|
|
"scenario_objectifs" :
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"niveau_titre" : "Les bases...",
|
|
|
|
"niveau_description" : "Il faut connaitre...",
|
|
|
|
"niveau_tutoriel" : "Ceci vous...",
|
|
|
|
"niveau_code" : "mov ax,0x545
|
|
|
|
inc dx
|
2021-07-11 16:34:50 +02:00
|
|
|
mov esi,0x44440234
|
2021-07-13 09:30:52 +02:00
|
|
|
syscall
|
2021-07-15 23:29:31 +02:00
|
|
|
mov ax,0x9000
|
|
|
|
mov ss,ax
|
|
|
|
mov ax,0xFFFF
|
|
|
|
mov sp,ax
|
|
|
|
mov cx,10
|
|
|
|
go:
|
|
|
|
push cx
|
|
|
|
dec cx
|
|
|
|
cmp cx,0
|
|
|
|
jnz go
|
2021-07-11 16:34:50 +02:00
|
|
|
hlt
|
2021-07-11 18:51:41 +02:00
|
|
|
jmp 0x14D
|
2021-07-11 16:34:50 +02:00
|
|
|
.org 0x8D
|
|
|
|
mov es,ax
|
|
|
|
.org 0x14D
|
|
|
|
mov es,ax
|
|
|
|
",
|
2021-07-08 12:06:23 +02:00
|
|
|
"niveau_droits" : 10,
|
|
|
|
"niveau_initial" :
|
|
|
|
{
|
|
|
|
"registres" :
|
|
|
|
{
|
|
|
|
"segments" :
|
|
|
|
{
|
|
|
|
"cs" : 0000,
|
|
|
|
"ds" : 0000,
|
|
|
|
"ss" : 0000,
|
|
|
|
"es" : 0000,
|
|
|
|
"fs" : 0000,
|
|
|
|
"gs" : 0000
|
|
|
|
},
|
|
|
|
"généraux" :
|
|
|
|
{
|
|
|
|
"eax" : 0,
|
|
|
|
"ebx" : 0,
|
|
|
|
"ecx" : 0,
|
|
|
|
"edx" : 0,
|
|
|
|
"esi" : 0,
|
|
|
|
"edi" : 0,
|
|
|
|
"esp" : 0,
|
|
|
|
"ebp" : 0,
|
|
|
|
"eip" : 0
|
|
|
|
},
|
|
|
|
"drapeaux" : 1
|
|
|
|
},
|
2021-07-08 13:56:42 +02:00
|
|
|
"code" : "ceci est le code"
|
2021-07-08 12:06:23 +02:00
|
|
|
},
|
|
|
|
"niveau_objectif" :
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2021-07-08 18:26:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"niveau_titre" : "Suite",
|
|
|
|
"niveau_description" : "Il faut connaitre...",
|
|
|
|
"niveau_tutoriel" : "Ceci vous...",
|
2021-07-15 23:29:31 +02:00
|
|
|
"niveau_code" : "mov ax,0x9000
|
|
|
|
mov ss,ax
|
|
|
|
mov ax,0xFFFF
|
|
|
|
mov sp,ax
|
2021-07-11 18:20:28 +02:00
|
|
|
_pour:
|
2021-07-13 09:30:52 +02:00
|
|
|
lea si,[msg]
|
|
|
|
call show
|
|
|
|
int 21
|
|
|
|
hlt
|
|
|
|
|
|
|
|
show:
|
|
|
|
push ax
|
|
|
|
push es
|
|
|
|
push di
|
|
|
|
push cx
|
|
|
|
mov ax,0xB800
|
|
|
|
mov es,ax
|
|
|
|
mov di,(80*2+40)*2
|
|
|
|
mov cx,16
|
|
|
|
mov al,0
|
|
|
|
boucle:
|
|
|
|
movsb
|
|
|
|
stosb
|
|
|
|
dec cx
|
|
|
|
cmp cx,0
|
|
|
|
jnz boucle
|
|
|
|
pop cx
|
|
|
|
pop di
|
|
|
|
pop es
|
|
|
|
pop ax
|
|
|
|
ret
|
|
|
|
|
|
|
|
msg:
|
2021-07-09 18:35:13 +02:00
|
|
|
db 'c','e','c','i',' ','e','s','t',' ','u','n',' ','t','e','s','t',0
|
2021-07-13 09:30:52 +02:00
|
|
|
|
|
|
|
.org 0x1000
|
2021-07-08 18:26:55 +02:00
|
|
|
hlt",
|
|
|
|
"niveau_droits" : 10,
|
|
|
|
"niveau_initial" :
|
|
|
|
{
|
|
|
|
"registres" :
|
|
|
|
{
|
|
|
|
"segments" :
|
|
|
|
{
|
|
|
|
},
|
|
|
|
"généraux" :
|
|
|
|
{
|
|
|
|
"eax" : 0,
|
|
|
|
"ebx" : 0,
|
|
|
|
"ecx" : 0,
|
|
|
|
"edx" : 0,
|
|
|
|
"esi" : 0,
|
|
|
|
"edi" : 0,
|
|
|
|
"esp" : 0,
|
|
|
|
"ebp" : 0,
|
|
|
|
"eip" : 0
|
|
|
|
},
|
|
|
|
"drapeaux" : 1
|
|
|
|
},
|
|
|
|
"code" : "ceci est le code"
|
|
|
|
},
|
|
|
|
"niveau_objectif" :
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2021-07-08 12:06:23 +02:00
|
|
|
]
|
|
|
|
}
|