VTI: Bug or not, in my code or not?

A General Discussion forum for TI calculators

Moderator: MaxCoderz Staff

Post Reply
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

VTI: Bug or not, in my code or not?

Post by benryves »

I don't quite understand this. I wrote a program that drew 3 filled triangles and spun them around. Inside the main loop, I wrote some code to toggle both bits of the link port, like this:

Code: Select all

; ... code
    ld a,(link_port_status)
    xor %00000011
    ld (link_port_status)
    out (bport),a
; more code ...

link_port_status:
    .db 0
With this code in there, my program ran 2 or 3 times faster than the version without the code. It didn't affect anything else, no overflows into other variables controlling the animation. If I didn't output the value to the bport, the speed was unchanged.

Anyone else noticed this? Do I just assume it's a bug in VTI?
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

I can't think of anything in VTI's code that would result in such behaviour. Does PTI also do the same?
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

CoBB wrote:I can't think of anything in VTI's code that would result in such behaviour. Does PTI also do the same?
I didn't have a copy of PTI to test with (nor a link cable to test on hardware). I'll give it a shot.
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Weird... I don't have a clue either...

http://www.hszk.bme.hu/~pg429/pindurti/pindurti.exe
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

I though VTI didnt emulate the linkport correctly. Oh well.
Image
Post Reply