68000 assembler in OS9



Hi all,

I'm tinkering with 68000 assembler programming under OS9/68000 V2.4.

I think I read somewhere that the 68000 CPU cannot access data on odd
bytes. If that's so, how does one access something like an IDE card,
whose registers are sequential bytes in the memory map, in my case the
port is 0x00F00300 to 0x00F0030F.

For example,

IDE Data is at 0x00F00300
IDE Error reg is 0x00F00301
IDE Status reg is 0x00F00307

etc....
If I load A3 with the port base address, and D0 with the value to be
written, like this:

move.l #$0F00300,a3
move.b 7(a3),d0 ;get the drive status
move.b #$EC,d0
move.b d0,7(a3) ;send Identify Drive command

will that be a legal instruction?

I need to be careful, since, the way I read it, the IDE drive will
begin it's command phase as soon as the command reg 7(a3) is written
to. If the 68000 always writes a word value, I'll need a different
approach. Suggestions, anyone?

Regards,Bob Devries
Dalby, QLD, Australia
.



Relevant Pages

  • Re: Codewarrior compiler command line???
    ... duplicate the command line for compile and link by telling it what ... IDE project options you are selecting. ... Far better would be to build the whole project from a makefile, ... now almost all development tools use Eclipse as their IDE ...
    (comp.arch.embedded)
  • Re: Math Error in the .NET Framework 1.1.4322 SP1
    ... > returns incorrect results for varying powers of 2 that depend on whether the ... > program is run from within the IDE or from the command line. ... > in further calculations, which can throw off some functions. ...
    (microsoft.public.dotnet.framework)
  • Re: Math Error in the .NET Framework 1.1.4322 SP1
    ... > returns incorrect results for varying powers of 2 that depend on whether the ... > program is run from within the IDE or from the command line. ... > in further calculations, which can throw off some functions. ...
    (microsoft.public.dotnet.general)
  • [git pull] IDE updates part 2
    ... Fix IDE to not process commands in IRQ-context and than switch the ... Scheduled removal of deprecated ide-scsi device driver. ... a newer protocol used by IDE CD-ROM and TAPE drives, ... based on the ATAPI IDENTIFY command results. ...
    (Linux-Kernel)
  • Re: C IDE Recommendations
    ... Is that "hijacking" a thread??? ... IDEs and use the command line instead??? ... > C IDE Recommendations // Subject line!! ... this is why I didn't really want an argument about command-line compiling versus IDE compiling. ...
    (comp.lang.c)