No Program Entry Point TASM Error

前端 未结 1 2023
傲寒
傲寒 2021-01-23 21:35

I\'m trying to develop a simple kernel using TASM, using this code:

; beroset.asm
;
; This is a primitive operating system.
;
;**********************************         


        
相关标签:
1条回答
  • 2021-01-23 22:22

    I would say that you need to end the Start: section by adding end Start at the last line like this:

    code ends
    end Start
    

    But again in that code you never initialize stack... It will not work, but it sould print "Operating system found and loaded.".

    UPDATE: Actually, this did the trick. I just added end Start in place of END and the "No entry point" error was gone. but you get the stack warning.

    So there you go. =)

    CONCERNING THE STACK: Just add this before everything:

    .model  small
    .stack 
    
    0 讨论(0)
提交回复
热议问题