Author Topic: Nasm dissassemble and assemble(compile)  (Read 23564 times)

Offline fixit

  • Jr. Member
  • *
  • Posts: 23
Re: Nasm dissassemble and assemble(compile)
« Reply #15 on: August 11, 2016, 02:19:26 PM »
Thanks for the info.


Offline fixit

  • Jr. Member
  • *
  • Posts: 23
Re: Nasm dissassemble and assemble(compile)
« Reply #16 on: August 11, 2016, 09:15:59 PM »
Thanks.

I am confused by the example in your second link.

It does not use Glade to assemble the example.

Do I need to use wine from DOSBOX or assemble and link from a console ?

Code: [Select]
make
nasm -f elf cross_os.asm
cross_os.asm:5: error: symbol `gtk_init' undefined
cross_os.asm:8: error: symbol `gtk_builder_new' undefined
cross_os.asm:9: error: symbol `oBuilder' undefined
cross_os.asm:11: error: symbol `NULL' undefined
 

This is more complicated than running MASM32. :-)
« Last Edit: August 11, 2016, 09:23:46 PM by fixit »

Offline Bryant Keller

  • Forum Moderator
  • Full Member
  • *****
  • Posts: 360
  • Country: us
    • About Bryant Keller
Re: Nasm dissassemble and assemble(compile)
« Reply #17 on: October 18, 2016, 12:05:02 PM »
Thanks.

I am confused by the example in your second link.

It does not use Glade to assemble the example.

Do I need to use wine from DOSBOX or assemble and link from a console ?

Code: [Select]
make
nasm -f elf cross_os.asm
cross_os.asm:5: error: symbol `gtk_init' undefined
cross_os.asm:8: error: symbol `gtk_builder_new' undefined
cross_os.asm:9: error: symbol `oBuilder' undefined
cross_os.asm:11: error: symbol `NULL' undefined
 

This is more complicated than running MASM32. :-)

Those errors are because you don't have a full copy of the source. The author only documented the code sections and left externs, constants, data sections, and the glade file itself in an attachment. Unfortunately, DreamInCode has since deleted the attachment... can't really find another decent example.

About Bryant Keller
bkeller@about.me