] [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
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
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
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
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
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
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
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
(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
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
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
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
: 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
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
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
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
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
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
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
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
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)
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
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
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
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,
- 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
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?
27 matches
Mail list logo