These numbers are machine code. The first number is a command, and the following numbers are the parameters.
I thought that on old PC's, these commands were 1 byte long.
But last time I worked with them was on C64, so erm .. I'm not sure how they work today.
Usually, people write in assembler, where each machine code instruction is represented by a 'mnemonic'. That is usually a 3-letter combination, such as 'MOV', that makes it easier to work with than with, say, '184'. But they are in fact the same.
For the PC, converting from ASM into machine code is easy, because it only needs to replace the instructions with the numbers they represent.
If you want to try this, do the following:
(1) Start->Run->type "CMD" and press Enter
(2) type "echo ################################################################# >test.dat" (+enter)
(3) type "debug test.dat" (+enter)
(4) type "a" (+enter)
(5) type the following program
mov ax, 13
int 10
mov ax, a000
mov es, ax
mov cx, ffff
in al, 40
rep stosb
in al, 60
dec al
jnz 010a
mov ax, 3
int 10
ret
--> press enter again here
(6) Then, type 'd 100' (+enter) .. means 'dump'
The program above will now be shown as a set of (hex) numbers, these are the actual bytes of the .exe file.
(7) Type 'w' + enter .. means 'write'
(8) Type 'q' + enter .. quit
(9) Type 'ren test.dat test.exe'
(10) Type 'test' to run the program
If all went well, the screen is now filled with alternating colors.
For more info about assember/machine code, try this page:
http://mirror.href.com/thestarman/asm/index.html
The example above came from this page:
http://www.everything2.com/index.pl?node_id=592466
http://www.everything2.com/index.pl?node_id=1160812
I thought that on old PC's, these commands were 1 byte long.
But last time I worked with them was on C64, so erm .. I'm not sure how they work today.
Usually, people write in assembler, where each machine code instruction is represented by a 'mnemonic'. That is usually a 3-letter combination, such as 'MOV', that makes it easier to work with than with, say, '184'. But they are in fact the same.
For the PC, converting from ASM into machine code is easy, because it only needs to replace the instructions with the numbers they represent.
If you want to try this, do the following:
(1) Start->Run->type "CMD" and press Enter
(2) type "echo ################################################################# >test.dat" (+enter)
(3) type "debug test.dat" (+enter)
(4) type "a" (+enter)
(5) type the following program
mov ax, 13
int 10
mov ax, a000
mov es, ax
mov cx, ffff
in al, 40
rep stosb
in al, 60
dec al
jnz 010a
mov ax, 3
int 10
ret
--> press enter again here
(6) Then, type 'd 100' (+enter) .. means 'dump'
The program above will now be shown as a set of (hex) numbers, these are the actual bytes of the .exe file.
(7) Type 'w' + enter .. means 'write'
(8) Type 'q' + enter .. quit
(9) Type 'ren test.dat test.exe'
(10) Type 'test' to run the program
If all went well, the screen is now filled with alternating colors.
For more info about assember/machine code, try this page:
http://mirror.href.com/thestarman/asm/index.html
The example above came from this page:
http://www.everything2.com/index.pl?node_id=592466
http://www.everything2.com/index.pl?node_id=1160812