Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to execute machine code (learning assembly)

I'd like to have a go at learning assembly, and possibly writing my own simple assembler (I recently read an interesting article on how to create an operating system, and quickly realised that a certain familiarity with assembly would help me out a lot here).

The trouble is that although I'm sure I'll have no problems finding articles and guides on assembly language / machine code, I tend to learn by doing, and I'd really like to have a go at executing my code. I figure I have two options:

  • Learn how to create a windows executable
  • Use some sort of virtual machine / emulator

The second option sounds better to me, as it protects me from potentially making stupid mistakes, and will probably more closely resemble the environment I'll be in while writing an OS, but I'm not really sure how to do either.

like image 262
Justin Avatar asked Dec 17 '22 06:12

Justin


1 Answers

You might want to read this fantastic :book

like image 164
bplus Avatar answered Jan 07 '23 13:01

bplus