numbers.asm

URL: https://mirkwood.cs.edinboro.edu/~bennett/class/cmsc3100/spring2026/notes/begin/code/numbers.asm
 
%include "CONSTANTS.h"

section .data
    myByte: db 0xFE
    otherByte: db 0A5H
    otheroOtherByte: db 5Ah
    myWord: dw 0xA50F
    otherWord: dw 1+4+32+128
    myDouble: dd 0x12345678
    myQuad: dq 0x123456789ABCDEF
    phrase: db "This is a phrase",0

    fmtString1: db  `The number is %d\n`,0
section .bss

section .text

global main
main:
    mov al, [myByte]
    mov ah, byte [myByte]
   
    jmp Exit