S-1990 and hw assisted sw debugging (Development MSX Forum)MSX Resource Center PassionMSX MSX2 contest              
              
English Nederlands Español Português Russian         
 News
   Frontpage
  News archive
  News topics

 Resources
   MSX Forum
  Articles
  Reviews
  Fair reports
  Photo shoots
  Fairs and meetings
  Polls
  Links
  Search

 Software
   Downloads
  Webshop

 MRC
   Who we are
  Join our team
  Donate
  Policies
  Contact us
  Link to Us
  Statistics

 Search
 
  

  

 Login
 

Username

Password




Don't you have an account yet? Become an MSX-friend and register an account now!.


 Statistics
 

There are 122 guests and 1 MSX friend online

You are an anonymous user.
 

MSX Forum


MSX Forum

Development - S-1990 and hw assisted sw debugging

Goto page ( 1 | 2 Next Page )
Author

S-1990 and hw assisted sw debugging

MicroTech
msx lover
Posts: 108
Posted: January 22 2008, 09:13   
Does S-1990 really support debug functions?
Where documentation explaining this feature can be found?
(even if only for tR it can be really useful for developers)


msd
msx professional
Posts: 607
Posted: January 22 2008, 16:07   
The answer to that must be in the s-1990 documentation, but where is this document?
HansO
msx addict
Posts: 375
Posted: January 23 2008, 09:18   
Quote:

The answer to that must be in the s-1990 documentation, but where is this document?


The only documents with some information on the Toshiba S1990 are the turbo R ST and GT manuals.
MicroTech
msx lover
Posts: 108
Posted: January 23 2008, 15:22   
I'm not very expert in Japanese but I feel these manuals do not explain how to access debug features...
Does a "MSX Turbo R Technical handbook" exist? If so is there a japanese user who can sell/send/translate one for European users?



cax

msx professional
Posts: 1009
Posted: January 23 2008, 20:54   
cax

msx professional
Posts: 1009
Posted: January 24 2008, 07:33   
BTW, in reaction to this newspost flyguille said "i got the official documentation of the s1990"
cax

msx professional
Posts: 1009
Posted: January 24 2008, 07:57   
Some more info comes from here:


Debug function

* Memory address comparator: When the address bus of the R800 is
watched and a designated address is accessed, an NMI is generated. The function is enabled when
address bus line A8 is pulled low while resetting the S-1990.

* NMI-status register: When the above-mentioned address
comparator is triggered this register contains the source of the NMI.

* Debug monitor for the cartridge slot register: When the
above-mentioned address comparator is triggered, while operating
the debug monitor, this control register controls the slot environment.

* NMI-return address register: contains the return address to the user
program, so it can return to the original program after exiting the debugger.

* Breakpoints: When debug mode is enabled, pressing the pause key
breaks the user program and jumps to a debugging Monitor in ROM.

MicroTech
msx lover
Posts: 108
Posted: January 24 2008, 09:13   
Well, If flyguille and/or k0ga have this documentation, I think they will do a really great gift to MSX community if they share these infos


sjoerd
msx addict
Posts: 443
Posted: January 24 2008, 10:01   
Quote:

Memory address comparator: When the address bus of the R800 is
watched and a designated address is accessed, an NMI is generated.
...bla bla bla...
Breakpoints: When debug mode is enabled, pressing the pause key
breaks the user program and jumps to a debugging Monitor in ROM.


If an NMI is generated, shouldn't there be some code to handle it in the TurboR BIOS ROM? Is this debugging Monitor ROM part of the ROM in a Turbo R?
[D-Tail]

msx guru
Posts: 2991
Posted: January 24 2008, 12:30   
I recall some magazine stating that the NMI line isn't connected in MSX. Does this hold for turboR as well then? Otherwise, that debug function doesn't make sense, really...
nikodr
msx addict
Posts: 449
Posted: January 24 2008, 12:59   
Yes i remember i asked this in a thread some months ago,the nmi is not connected by default so on msx1/2 machines we do not have nmi interrupts -on zx spectrum this is different i think and works-.There is way though to connect it but requires soldering skills.
MicroTech
msx lover
Posts: 108
Posted: January 24 2008, 14:57   
@ D-Tail & nikodr: looking at GT and ST manuals, debug feature seems possible on turboR machines.

@ sjoerd: turboR's BIOS can be mirrored in ram (as GFX9000's powerbasic) and adapted to handle a "restart" to 0x66.
Probably in DOS mode NMI would "fall" in a fcb or similar... but I think that wouldn't be an unsolvable problem.

The real issue is to find documentation... (also in japanese would probably be useful).
sjoerd
msx addict
Posts: 443
Posted: January 25 2008, 12:55   
I mean: You may be able to find some information by looking at the turboR roms. msx bios has an nmi handler and an nmi hook.

But some s1990 (and r800) documentation would be nice.
MicroTech
msx lover
Posts: 108
Posted: January 25 2008, 14:40   
@ sjoerd: in turboR's bios at 0x0066 there if a jp to a call to nmi's hook which terminates with no action... so no hints.

I succeded in contacting flyguille but he admits he confused the document with another pdf and later he rectified his assertion... so no documentation atm...





sd_snatcher
msx user
Posts: 49
Posted: January 26 2008, 19:42   

This statements seems to have been copied from the Wikipedia's article about the S-1990:


http://en.wikipedia.org/wiki/S-1990


The wikipedia English article by itself seems to be a babelfish translation of the Japanese article:


http://ja.wikipedia.org/wiki/S1990


The debug part of the Japanese article was written by some user called "Baz1521". Maybe someone can locate this guy and ask him for some documentation.


Quote:

Some more info comes from here:


Debug function

* Memory address comparator: When the address bus of the R800 is
watched and a designated address is accessed, an NMI is generated. The function is enabled when
address bus line A8 is pulled low while resetting the S-1990.

* NMI-status register: When the above-mentioned address
comparator is triggered this register contains the source of the NMI.

* Debug monitor for the cartridge slot register: When the
above-mentioned address comparator is triggered, while operating
the debug monitor, this control register controls the slot environment.

* NMI-return address register: contains the return address to the user
program, so it can return to the original program after exiting the debugger.

* Breakpoints: When debug mode is enabled, pressing the pause key
breaks the user program and jumps to a debugging Monitor in ROM.


 
Goto page ( 1 | 2 Next Page )
 







(c) 1994 - 2008 MSX Resource Center Foundation. MSX is a trademark of MSX Licensing Corporation.