RE: coding question (again)

2000-05-02 Thread Frits Hilderink
] [mailto:[EMAIL PROTECTED]]On Behalf Of sander Niessen Sent: Monday, May 01, 2000 4:34 PM To: [EMAIL PROTECTED] Subject: coding question (again) Hi ppl, When you have a sprite collission. The fifth bit of status register 0 (S#0) should be set. But when I try to read

Re: coding question (again)

2000-05-02 Thread David Heremans
interrupt routine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of sander Niessen Sent: Monday, May 01, 2000 4:34 PM To: [EMAIL PROTECTED] Subject: coding question (again) Hi ppl, When you have a sprite collission. The fifth bit

Re: coding question (again)

2000-05-02 Thread David Heremans
meone else read S#0 before you did. Most probably the standard interrupt routine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of sander Niessen Sent: Monday, May 01, 2000 4:34 PM To: [EMAIL PROTECTED] Subject: coding q

coding question (again)

2000-05-01 Thread sander Niessen
Hi ppl, When you have a sprite collission. The fifth bit of status register 0 (S#0) should be set. But when I try to read this bit it always (even when i place two sprites on the same position) not set, zero. How come! Help! Sander Niessen

Re: coding question (again)

2000-05-01 Thread Maarten ter Huurne
On Mon, 01 May 2000, sander Niessen wrote: When you have a sprite collission. The fifth bit of status register 0 (S#0) should be set. But when I try to read this bit it always (even when i place two sprites on the same position) not set, zero. How come! A few guesses: (I think the last

Re: Coding question

2000-04-25 Thread B. Wijnen
Hi, I shall put some comments in the assembly, if you don't agree with what I say, there's an error in the implementation (or a mistake on my side ;) I have the following subroutine: ld hl,(table) ; load table into hl dynamic start of table: the start address is kept at address table inc

Coding question

2000-04-23 Thread sander Niessen
Hi, I have a (small) coding question, probably not so difficult. But I'm still learning. I have the following subroutine: ld hl,(table) ; load table into hl inc hl ; increase table inc hl ; increase table ld a,(hl) ; put value in a sla a ; *2 sla

Re: Coding question

2000-04-23 Thread Floris 'Tamama' van Gog
ld (hl),a is a valid instruction (01110111b) so I guess its a logical error sander Niessen wrote: Hi, I have a (small) coding question, probably not so difficult. But I'm still learning. I have the following subroutine: ld hl,(table) ; load table into hl inc hl ; increase

Re: Coding question

2000-04-23 Thread d-fader
(01110111b) so I guess its a logical error sander Niessen wrote: Hi, I have a (small) coding question, probably not so difficult. But I'm still learning. I have the following subroutine: ld hl,(table) ; load table into hl inc hl ; increase table inc hl

Re: Coding question

2000-04-23 Thread Maarten ter Huurne
On Sun, 23 Apr 2000, sander Niessen wrote: I have a (small) coding question, probably not so difficult. But I'm still learning. I have the following subroutine: ld hl,(table) ; load table into hl inc hl; increase table inc hl; increase table ld a,(hl

Re: Coding question

2000-04-23 Thread Laurens Holst
Hi, I have a (small) coding question, probably not so difficult. But I'm still learning. I have the following subroutine: ld hl,(table) ; load table into hl inc hl ; increase table inc hl ; increase table ld a,(hl) ; put value in a sla

Z80 - was Interrupt modes?? (coding question)

2000-03-23 Thread Jon De Schrijder
Frits Hilderink wrote: According to the official documentation on the Z80 regarding interrupt mode 2 says that bit 0 of the lower address byte is always 0. To be short, only the 7 most significant bits are used. Can someone mail me a PDF (or alike) datasheet of the Z80 ?? thanx jon

RE: Interrupt modes?? (coding question)

2000-03-22 Thread Frits Hilderink
: Wednesday, March 01, 2000 11:55 PM To: [EMAIL PROTECTED] Subject: Re: Interrupt modes?? (coding question) So to use IM2 the way it on MSX, should for some added hardware gizmo, this ] devices would have to put its dev-ID on the bus during acknowledgment, AND ] that resistor must be removed

Re: Interrupt modes?? (coding question)

2000-03-22 Thread Laurens Holst
According to the official documentation on the Z80 regarding interrupt mode 2 says that bit 0 of the lower address byte is always 0. To be short, only the 7 most significant bits are used. I implemented it this way in NLMSX and UZIX works perfectly now. ] So, it is sufficient to write

Re: Interrupt modes?? (coding question)

2000-03-06 Thread Richard Gerrits
Though, when you build such a device you should make surethat you only have one such device in your computer. If you put a second one in the second cartridge slot for example, you will get bus conflicts if they generate an interrupt at the same time... Or to be more precise, if theyboth

Re: Interrupt modes?? (coding question)

2000-03-01 Thread Laurens Holst
Ps. I have used IM 2 as well on several occasions. What added use is it over using the regular 038h? In the Basic environment, the ROM is located at #38. As long as you don't use it you can easily switch it away (although you will need an extra mapperpage for it I don't really think that is a

Re: Interrupt modes?? (coding question)

2000-03-01 Thread Laurens Holst
QA: Q: Why must the MSB equal the LSB? A: Because on computers which use IM2 (PC uses something like it), the number on the databus MUST be a multiple of 2. On MSX however, this is undefined, so the adress in the jump-table can also be an odd number. You need that because you

Re: Interrupt modes?? (coding question)

2000-03-01 Thread Alex Wulms
So to use IM2 the way it on MSX, should for some added hardware gizmo, this ] devices would have to put its dev-ID on the bus during acknowledgment, AND ] that resistor must be removed. Just out of curiosity, is this easily done? You don't need to remove the pull-up resisters. They have a high

Interrupt modes?? (coding question)

2000-02-28 Thread d-fader
Hello ppl... Today my eyes fell on a Z80 instruction set again... My attention this time went to the IM 0, IM 1 and IM 2 instructions... I never used them, and I think I can say no one ever used 'em, but I just wanted to know how they work... Normally the MSX uses IM (Interrupt Mode) 1.. This

Re: Interrupt modes?? (coding question)

2000-02-28 Thread Laurens Holst
Hello ppl... Today my eyes fell on a Z80 instruction set again... My attention this time went to the IM 0, IM 1 and IM 2 instructions... I never used them, and I think I can say no one ever used 'em, I used IM 2 for an own interrupt routine in Basic. All editions of Track used it. but I

RE: Interrupt modes?? (coding question)

2000-02-28 Thread Frits Hilderink
First, you will have to put your interrupt-routine on an adress of which the MSB is the same as the LSB, so for example #C0C0 Then, fill an area starting at an adress of which the LSB is #00 (e.g. #C200) with 257 times the MSB (or the LSB)

Re: No interrupts? (coding question)

2000-01-06 Thread shevek
On Wed, 5 Jan 2000, Laurens Holst wrote: You can turn off the interrupts in VDP also, but this does not interrupt IRQs from another devices (assuming there is strange hardware connected in your machine). I think this is what I'm searching for... Could you provide me with more

No interrupts? (coding question)

2000-01-04 Thread d-fader
Hello folks... I have a (maybe pretty stupid) question... A while ago someone told me that it is possible to turn off all interrupts (No call to $fd9f and stuff)... Is this true?? If so... How is it possible to do that, and maybe even so important, how is it possible to turn it on again... I

Re: No interrupts? (coding question)

2000-01-04 Thread Ricardo Bittencourt Vidigal Leitao
On Tue, 4 Jan 2000, d-fader wrote: I have a (maybe pretty stupid) question... A while ago someone told me that it is possible to turn off all interrupts (No call to $fd9f and stuff)... Is this true?? Sure, all you need to do is to execute the assembly instruction "DI" (opcode F3). It

Re: CODING Question

1999-04-15 Thread john . j
Cas Cremers schrieb: Task: approximation in assembler to - a = sqrt ( b*b + c*c ) let's call it sentence of p... [...cut...] p:= max(a,b)+0.25*min(a,b) [...cut...] Cas Cremers He - thanx a lot! Exactly what I have been searching for! greetz JJoS -- Tilburg Team: Janosch, SGI,

Re: CODING Question / just a little update

1999-04-15 Thread Cas Cremers
- a = sqrt ( b*b + c*c ) let's call it sentence of p... [...cut...] p:= max(a,b)+0.25*min(a,b) [...cut...] Erm ofcourse I meant a:=max(b,c)+0.25*min(b,c) and it ends up like this: |[ ;we want a=min and c=max... ld a,b cp c jr c,noswap ;apparently, cb, so we

CODING Question

1999-04-13 Thread john . j
Hi all! I have a lil question Task: approximation in assembler to - a = sqrt ( b*b + c*c ) let's call it sentence of p... Well, I need a _FAST_ approximation. The simpliest is: a+b (I know, it is NO real approx., but it is simple...) Can someone of you tell me a "better" (fast) one?