<< 8/27 >>
First Last

ELVM IR - Hello, world!

  .text
  main:
  	mov D, SP
  	add D, -1
  	store BP, D
  	mov SP, D
  	mov BP, SP
  .data
  	.L215:
  	.string "Hello, world!"
  .text
  	mov A, .L215
  	mov D, SP
  	add D, -1
  	store A, D
  	mov SP, D
  	mov A, .L216
  	mov D, SP
  	add D, -1
  	store A, D
  	mov SP, D
  	jmp puts
  	.L216:
  	mov A, B
  	add SP, 1
  	exit