Re: writing a monitor




"Allan Adler" <spamtrap@xxxxxxxxxx> wrote in message
news:y93prxe7r3f.fsf@xxxxxxxxxxxxxxxxxxxxxxx
Matt <spamtrap@xxxxxxxxxx> writes:

Mike Gonta wrote:
Here is a real gem.
Seattle Computer Products 8086 Monitor version 1.4 2/18/80 by Tim
Paterson. Instruction manual and 8086 Monitor Assembly Listing
("This software is not copyrighted").
http://www.patersontech.com/Dos/Docs/Mon_86_1.4a.pdf

I spent years programming Z80 CPUs and 8085 CPUs on a processor which
had only write byte, read byte, step, and run instructions. It took 6
months to write a program that would now take me a couple of days to
write. I had to hard-code the instructions from assembler to hex by
hand. Fun, but slow :-)

That's something to look forward to. At the moment, I'm writing my
programs
from the comfort of RedHat Linux 7.3 on an ancient PC, assembling them
using the resident as86 and ld86 and using a C program to write them to
the boot sector and other sectors of a floppy. Then I have to reboot to
boot from the floppy. After the program runs, I have to reboot to Linux
to find out what got written to the floppy during the run of the boot
sector program, using dd and od to examine the floppy. These resources
will
still be available if I write or install a monitor, but it will be more
convenient to find out what the results are when a program runs and
perhaps to make slight modifications to it.

My question is, why don't you use Bochs?

If you already have written a C app to write the boot sector to the
floppy, you should be able to modify it to write to a floppy image
instead. Using Bochs, you won't have to reboot all the time, and
Bochs will return an error log, and it has a debugger that will
let you step through the code an instruction at a time.

http://bochs.sourceforge.net/

Ben

.



Relevant Pages

  • Re: hla set up for the art of assembly
    ... are using it to teach assembly programming, ... Very assembler like: ... Note that HLA allows a form that lets you specify a constant. ... actually support a MUL or IMUL instruction that has a constant operand. ...
    (alt.lang.asm)
  • Re: Loading single word to a xmm register
    ... Certainly not the types of programming that is being done with SSE ... And keep in mind that if your assembler were running on a CPU prior to ... the advent of the SSE instruction set, then your assember ...
    (alt.lang.asm)
  • Re: HLA v1.86 is now available
    ... Which instruction do they know, when they the first time need ... Most students in the lab *would* be capable of loading a constant into ... you ought to learn Intel syntax and drop nonsense like this. ... Why is it important to "learn how to operate the assembler, ...
    (alt.lang.asm)
  • Re: softwire for basm?
    ... Not necessarilly, but it definetely makes it more easier for humans to code, and it reduces the overall amount of code you'll have to maintain in the library (even when NOT using a preexisting assembler). ... Assembling is relatively mechanical and straightforward once you have understood the modRM / SIB stuff, remember that the first full-blown assemblers did fit in a dozen kB of code (most of it being instruction tables, rather than code), and the parsed output of a block of ASM is directly the assembled ASM. ... ASM registers are a limited ressource, easily injectable code will involve systematic pushing/popping and extra register traffic which can quickly end more costly than the calls. ...
    (borland.public.delphi.language.basm)
  • Re: [OT] On `ad hominem - OS X users
    ... This is as relevant as saying "The CPU may not support the ... language of your assembler files".... ... While an assembler language is supposed to be ... assembler instruction you mean and substitute it". ...
    (comp.lang.perl.modules)