CSC231 Lab7skel.asm

From dftwiki3
Revision as of 09:40, 5 November 2010 by Thiebaut (talk | contribs) (Created page with '--~~~~ ---- ;;; Lab7.asm ;;; a simple skeleton program to be linked with driver.c ;;; %include "asm_io.inc" ;; -----------------------…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

--D. Thiebaut 13:40, 5 November 2010 (UTC)


     ;;; Lab7.asm
     ;;; a simple skeleton program to be linked with driver.c
     ;;;


     %include "asm_io.inc"

             ;; -------------------------
             ;; data segment
             ;; -------------------------
             section .data

             ; Put your variables here
             ;; -------------------------
             ;; code area
             ;; -------------------------
             section .text
             global  asm_main
     asm_main:       

             ; Put your code here

 
             ;; return to C program
             ret


     ; Put your functions here
     ...