Programming Forums
User Name Password Register

RSS Feed

Thread Tools Display Modes
Old Nov 29th, 2012, 11:31 AM   #1
Join Date: Nov 2012
Posts: 1
Rep Power: 0 xp_vista007 is on a distinguished road
Comment this code 8086

Hi, i'm new to assembly . I installed emu8086 and i noticed some tutorials.
One of them is called Led display test, it's interesting, but can anyone help me with // adding comments in code, i must now how it is working. Here is the code, thanks:



name "led"

mov ax, 1234
out 199, ax

mov ax, -5678
out 199, ax

; Eternal loop to write
; values to port:
mov ax, 0
  out 199, ax  
  inc ax
jmp x1

xp_vista007 is offline   Reply With Quote
Old Nov 30th, 2012, 1:50 AM   #2
Indie Game Developer
lonewolff's Avatar
Join Date: Sep 2008
Location: Australia
Posts: 196
Rep Power: 10 lonewolff is on a distinguished road
Re: Comment this code 8086

Your code-snippet allready has comments in there

; Eternal loop to write
; values to port:

Comments start with a semi-colon.
lonewolff is offline   Reply With Quote


« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
code structure lapta Delphi 1 Dec 27th, 2010 10:19 AM
Hamming code error detection/correction thebiff C 0 Oct 22nd, 2010 3:24 PM
Does anyone know what this line of code does? neorich2002 Other Programming Languages 3 Jul 5th, 2010 2:23 PM
weird Allocation/Deallocation error in C code Abhijit Bose C 9 Jun 14th, 2010 7:33 AM
Messy Code - To refactor or not to refactor MiKuS HTML / XHTML / CSS 4 Nov 27th, 2007 9:00 PM

DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:24 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC