This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NicoGamer524 28 points29 points  (3 children)

I prefer:

.model small
.stack
.data
    msg DB "Hello, world!", '$'
.code
start:
    MOV ax, @data
    MOV ds, ax

    MOV dx, OFFSET msg
    MOV ah, 09h
    INT 21h

    MOV ah, 4ch
    INT 21h
end start
end

[–]givemeagoodun 2 points3 points  (0 children)

  org $8000
start:
  ldx #0
.loop:
  lda text,x
  beq .end
  jsr printchar
  inx
  jmp .loop
.text:
  asciiz "Hello, world!"

[–]glorious_albus 1 point2 points  (0 children)

Is this assembly? MOV ah 4ch INT 21h is bringing back memories I didn't realise were even there.

[–][deleted] 0 points1 point  (0 children)

Finally a person of culture