![]() |
| ||
| writing a a program in machine code Hi have one querery regarding writing in machine code, address- instruction 00000 001 10000 00001 010 10000 00010 100 10000 00011 110 10001 00100 111 00000 10000 000 00001 10001 000 11111 i dont know how to write a program in machine code, which adds up to the numbers stored in cell 11000 11001, 11010 and stores the sum in cell 11011. any help would be much appreciated angela |
| ||
| Re: writing a a program in machine code i have one question. why would you want to write a program in machine code? I mean now with such advanced programming languages from c++ to even java is there any point to learning java. |
| ||
| Re: writing a a program in machine code Hi you can write the Machine Code. Instead of writing mnemonics you can write opcodes in asm files , like db 0aeh ;equal to far jmp instructions. Hope this will help u... |
| ||
| Re: writing a a program in machine code If you are that much of a masochist, you would have to get hold of the technical reference manual(s) for your processor, and look up how assembly language instructions are encoded into machine code. Short of writing an operating system for a brand new model of computer, without any possibility of cross assembly, I can't imagine why anybody would want to do it. |
| ||
| Re: writing a a program in machine code Do universities teach that any more? I thought writing programs in machine code went out in the early 1960s, before punch cards were invented. |
| ||
| Re: writing a a program in machine code my dad used punchcards still at uni during the late 70's lol |
| ||
| Re: writing a a program in machine code There are valid reasons why someone would want to write a program in machine code, though I can't myself see why anyone would need to deal in binary. Anyhow, you can hand assemble code by swapping mneumonics with their opcodes, which are mainly giving in hex. |
| ||
| Re: writing a a program in machine code Quote:
1) academic purposes 2) on obscure os that does not have an assembler |
| ||
| Re: writing a a program in machine code Quote:
Obviously debuggers and such need to do it when they implement the ability to alter code on the fly, and OS internals often do a bit of it when applying patches to known broken apps before allowing them to execute. DOS 5 and later for example, patch the in memory image of applications built with a buggy version of the Rational Systems DOS extender before giving them control. |
| ||
| Re: writing a a program in machine code Quote:
|
| All times are GMT -4. The time now is 2:14 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC