Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hot_Dog

Pages: 1 ... 38 39 [40] 41 42 ... 194
586
ASM / Re: Constructive and Creative uses of IX and IY
« on: August 20, 2011, 05:01:17 pm »
Personnaly, i often use ix half registers as 8-bit backups.
In this case, saving|restoring a value is twice as big than using the stack but when speed is the desired criteria, saving 5 t-states can definitely matter.

Actually, using 8-bit backups uses an average of 8 t-states when it comes to half registers.  However, sometimes you run into code where using the stack in that instance could be dangerous (for example, pushing a value before you ret) and then the 8-bit backups come in handy

587
ASM / Re: Constructive and Creative uses of IX and IY
« on: August 20, 2011, 11:22:59 am »

Another hack I recently figured out is that (iy - 3) is the end of plotSScreen. This means you can have your own set of flags that are guaranteed to be free to use. And since it uses the location that IY is already at, you're not even giving up a register.

I never would have thought of that 0_0

588
ASM / Re: Constructive and Creative uses of IX and IY
« on: August 20, 2011, 01:07:58 am »
Quote
Not entirely sure this counts as "just an extra HL"

I don't know what counts as "just an extra HL" either ;)  I guess I mean using IX and IY effectively more than 5 times in a section of code

589
ASM / Constructive and Creative uses of IX and IY
« on: August 19, 2011, 11:37:35 pm »
Although we give index registers a bad name, they can be VERY useful at times, especially if you know what you're doing.  Feel free to post here about a time you used IX and IY for more than just "an extra HL."

For me, I'm working on something which I will announce later, but it involves grayscale.  It started out as monochrome, and IX pointed to plotscreen while HL pointed to necessary sprites and textures.  Then I finally realised that I could do grayscale by drawing to two different buffers (a *duh* moment, but after all I'm new to grayscale), so I used IY to redraw exactly what was drawn to IX, but on a second buffer

590
General Discussion / "The Planets" by Gustav Holst
« on: August 19, 2011, 04:39:25 pm »
The Planets is easily my favorite piece of music.  And it's not just because it's about the planets.  It's because it's well written, well thought out and well orchestrated.  Each one makes you wish you were playing in the orchestra--and paints a picture as if you were watching a ballet

I know that  a lot of people like the Jupiter part the best.  My favorite is Saturn followed by Mars. 










591
ASM / Re: I'm having trouble with my crystal timer interrupts
« on: August 18, 2011, 11:24:43 am »
No, I think you're right :)   The sequence was restarted before it finished.

592
News / Re: OmnomIRC moved to new server
« on: August 18, 2011, 10:30:58 am »
Cooliojazz, thank you so much for fixing the channel for us during this unexpected moment.

Quote
By the way staff don't blame yourself for the takeover. It's me who insisted so Sir re-applies for staff a few months ago because he was fine for a while. Problems started happening a week after he returned to staff. I got into 3 fights with SirCmpwn, because he tried to challenge Omnimaga authorities and was increasingly rude, and now he hated on Eeems because he'S christian.

We all took that chance, DJ.  No one is "at fault," including yourself.  

By the way, everyone, I don't think anyone supports SirCmpwn's attitude, but he was a good friend to some and was, for a while, a very positive influence to our site.  So far, it looks like we are also doing our best to be fair to those who hope he will come back.  Let's make sure we keep it that way.

593
Miscellaneous / Re: End of activity peak?
« on: August 17, 2011, 07:16:02 pm »
I actually have something going, but I'm not ready to announce it yet.  (Please don't tell what it is, DJ :))

Oh you've said something about it so now you have to tell! So spill it! Inquiring minds wish to know! :D

Yeah yeah, when I'm good and ready ;) 

Joking aside, I'd say about a week or so

594
Miscellaneous / Re: End of activity peak?
« on: August 17, 2011, 03:07:57 pm »
I actually have something going, but I'm not ready to announce it yet.  (Please don't tell what it is, DJ :))

595
Miscellaneous / Nobody knows everything
« on: August 17, 2011, 02:32:17 pm »
As you have all noticed, from time to time I like to post some advice to help us all keep this a community-friendly site. 

As far as I know, few people have purposely insulted or hurt the feelings of someone who doesn't know how to do something.  On the contrary, members of the website have generally tried to be friendly and provide helpful and positive results.

What I have noticed on occasion, however, is showing surprise.  Like "I'm surprised you didn't know that."  For example, I was asking for help on a Ti-Basic program, and the problem was I had a memory leak.  The person who helped me said "I'm surprised you didn't know that with all your ASM knowledge."  Well, yeah, just because I know a lot of ASM doesn't mean I'm advanced in Ti-Basic programming.

Whether we intend it or not, a remark of surprise can hurt someones feelings.  I, for one, felt hurt because it was like "You know all this, and yet you don't know something this simple?"  The person who helped me didn't mean it that way, but I felt stupid.

I think it's only calc84maniac who knows each and everything about his area of expertise (a little joke, of course :P)  So it will help if we remember that people good at some things will not be good at everything.  If we avoid displaying surprise, people will feel better about themselves.

596
ASM / Re: I'm having trouble with my crystal timer interrupts
« on: August 17, 2011, 10:58:17 am »
The interrupts/timers are working perfectly now, but apparently something else is wrong.  On Wabbitemu the interrupt routine successfully copies all of plotsscreen, but on actual hardware only the first 2 1/2 columns are copied.  Here's my modified interrupt routine.  Again, please leave out comments of optimization.

Code: [Select]
Interrupt Routine:


exx
ex af, af'  
out ($31), a
dec c
_
in f, (c)
jp m, -_

inc c
outi




add hl, de
exx
jr z, _
ex af, af'
ei
ret
_


;Here, go to the next row of the screen

exx

push af
ld a, (copycolumn)
inc a
ld (copycolumn), a

cp $2c

;If $2C, turn off interrupts and timers

jr z, EndCopy


dec h
dec h
dec h
inc hl
             dec c
_

in f, (c)
jp m, -_

out ($10), a
inc c
ld b, 64
exx


ld a, $80
out ($30), a

ld a, 3
out ($31), a

ld a, 155
out ($32), a
pop af

ex af, af'
exx
ei
ret


EndCopy:

exx
xor a
out ($30), a
out ($31), a
di
pop af
ex af, af'
ret

597
ASM / Re: I'm having trouble with my crystal timer interrupts
« on: August 16, 2011, 10:25:28 am »
Hmmm...I think I get it.  I'll try it out when I have the chance.  I am left with 2 questions though:

1. The first interrupt occurs from hardware timers as opposed to crystal timers.  I assume that it's normal and that there's nothing I can do about it?
2. The 84+ uses two of the three timers.  Which of the three is free to use?

598
ASM / I'm having trouble with my crystal timer interrupts
« on: August 16, 2011, 01:10:38 am »
Here's my problem: In my program, the calculator seems to be relying on the hardware timers.  I don't think that the crystal timer is generating interrupts.

I know that I'm doing something wrong, but I don't know what it is.  Below is the following code: My interrupt routine, and the code that initalizes the first crystal timer to generate interrupts.  Please don't comment on how my code could be optimized, because that's something I plan to work on once I get this thing working

Code: [Select]

TurnOnInterrupts:

ld a, $80
out ($10), a

ld a, 3 ;3 resets the timer each time.
ld hl, plotsscreen
ld de, 11 ;Add to hl each time
ld b, 64
ld c, $11
ex af, af'
exx

ld c, $10
ld a, $20
ld (copycolumn), a
_
in f, (c)
jp m, -_
out ($10), a

ld a, $80
out ($30), a

ld a, 3
out ($31), a
im 2
ei
ld a, 100
out ($32), a

             ret


Interrupt Routine:


exx ;4
ex af, af' ;4
out ($31), a ;11
dec c ;4
_
in f, (c)
jp m, -_

inc c
outi




add hl, de ;11
exx ;4
jr z, _ ;7
ex af, af'
;ei
ret ;10
_


;Here, go to the next row of the screen

exx

push af
ld a, (copycolumn)
inc a
ld (copycolumn), a

cp $2c

;If $2C, turn off interrupts and timers

jr z, EndCopy


dec h
dec h
dec h
inc hl

_
dec c
in f, (c)
jp m, -_

out ($10), a
inc c
ld b, 64
exx


ld a, $80
out ($30), a

ld a, 3
out ($31), a

;ld a, 80
;out ($32), a
pop af

ex af, af'
;exx
;ei
ret


EndCopy:

exx
xor a
out ($30), a
out ($31), a
di
pop af
ex af, af'
ret









599
ASM / Re: Keeping the Crystal Timers going
« on: August 15, 2011, 03:39:11 pm »
I forgot to thank you, Floppus.  This information is just what I needed!

600
ASM / LCD Delay Ports
« on: August 15, 2011, 10:46:50 am »
If ports 29-2C are told to delay with LCD commands, will the calculator continue running code during the delay, or will it halt until the byte of data has been sent to the LCD successfully?

Pages: 1 ... 38 39 [40] 41 42 ... 194