; Listing5-8.asm
;
; A program that demonstrates simple multithreading.

            option     casemap:none
            option     prologue:none
            include    aoalib.inc   ;AoA library + constants
            includelib aoalib.lib   ;Link in aoalib library
            
            .const

; Program title:

            align   word
ttlStr      byte    "Listing 5-8", 0


            .code
        
; Here is the main assembly language function.

            
            public  asmMain
asmMain     proc
            
            push    rbp
            mov     rbp, rsp
            sub     rsp, 64         ;Locals and shadow storage
            mov     [rbp-8], rbx

            call    print
            byte    "Listing5-8, run from Listing5-9", nl, 0

allDone:    mov     rbx, [rbp-8]
            leave
            ret     ;Returns to caller
        
asmMain     endp
            end