Précédent   Forum du club des développeurs et IT Pro > Autres langages > Assembleur > x86 16-bits
x86 16-bits Architecture x86 16 bits et ses outils (assembleurs, debuggers, émulateurs...)
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 22/01/2012, 15h36   #1
touirik
Invité régulier
 
Homme
Inscription : avril 2011
Messages : 25
Détails du profil
Informations personnelles :
Sexe : Homme

Informations forums :
Inscription : avril 2011
Messages : 25
Points : 5
Points : 5
Par défaut affichage caractère nasm

bonjour,
c'est mon premier programme sous nasm, et je voudrais afficher un simple caractère (A dans mon exemple).
le programme executé, n'affiche que le message: press any key to continue

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
bits 16
org 0x0100
 
segment .text
;; mode d'affichage
mov ax, 0x0003
int 10h
 
;; affichage du caractère
mov al, 65 ;; code ascii du caractère
mov bl, 12 ;; couleur
mov bh, 1 ;; page d'ecran
mov cx, 1  ;; nombre de répétitions
 
;; positionnement du curseur
mov bh, 1  ;; page d'écran
mov dl, 2  ;; colonne
mov dh, 4  ;; ligne
 
;; fin du prg
mov ax, 0x4c00 
int 21h
merci a vous.
touirik est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/01/2012, 08h05   #2
Forthman
Membre expérimenté
 
Avatar de Forthman
 
Homme François
conception mécanique
Inscription : janvier 2005
Messages : 340
Détails du profil
Informations personnelles :
Nom : Homme François
Âge : 37
Localisation : France, Tarn et Garonne (Midi Pyrénées)

Informations professionnelles :
Activité : conception mécanique
Secteur : Industrie

Informations forums :
Inscription : janvier 2005
Messages : 340
Points : 547
Points : 547
Il te manque des appels d'interruptions pour l'affichage du caractère
Forthman est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 07h32.


 
 
 
 
Partenaires

Hébergement Web