Difference between revisions of "CSC231 Lab7skel.asm"
(Created page with '--~~~~ ---- ;;; Lab7.asm ;;; a simple skeleton program to be linked with driver.c ;;; %include "asm_io.inc" ;; -----------------------…') |
|||
Line 5: | Line 5: | ||
;;; a simple skeleton program to be linked with driver.c | ;;; a simple skeleton program to be linked with driver.c | ||
;;; | ;;; | ||
− | |||
+ | |||
%include "asm_io.inc" | %include "asm_io.inc" | ||
− | + | ||
;; ------------------------- | ;; ------------------------- | ||
;; data segment | ;; data segment | ||
Line 15: | Line 15: | ||
; ''Put your variables here'' | ; ''Put your variables here'' | ||
− | + | ||
;; ------------------------- | ;; ------------------------- | ||
;; code area | ;; code area | ||
Line 23: | Line 23: | ||
asm_main: | asm_main: | ||
− | + | ||
; ''Put your code here'' | ; ''Put your code here'' | ||
Line 30: | Line 30: | ||
ret | ret | ||
− | + | ||
; ''Put your functions here'' | ; ''Put your functions here'' | ||
... | ... |
Revision as of 09:41, 5 November 2010
--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 ...