Scenergy #02
31 декабря 1999

Coding - A bug in the STS?

<b>Coding</b> - A bug in the STS?
                A bug in the STS?

 In preparation ZXA library to
publication I have encountered a strange
STS behavior when debugging examples of work
with the library. I can not say for sure:
Is this a bug or just a feature of the STS
work, but everyone should know about it so
not to seek non-existent bugs in its
code.
 Thus, debugging the following piece of code:


        CALL ZXA_DRAW_FRAME
INT_COUNTER EQU $ +1

        LD A, 00

A interrupt hung the following snippet:


        LD HL, INT_COUNTER

        INC (HL)
 And (an important point!) Time
ZXA_DRAW_FRAME procedure was slightly
more interruptions, ie, during her work
interruption occurred necessarily.
 So, if the line CALL ZXA_DRAW_FRAME
is present (it is installed PC) and
if you go into this line of STS SS + T, then
The SP register CHANGE YOUR VALUE! And
its value must be equal to # FBxx
where xx - any number.

 What it is: a bug or not? I do not know ... Know
Only, he spent several hours at
search for bugs in your code (since code
worked, if it is run, and did not work
when debugging in STS).

 Here is an example program for debugging
which can interfere with expression of
this error:

        DI

        LD HL, # 6000

        LD DE, # 6001

        LD BC, # 100

        LD (HL), # 61

        LDIR

        LD A, # C3

        LD (# 6161), A

        LD HL, IM2

        LD (# 6162), HL

        LD A, # 60

        LD I, A

        IM 2

        EI
LOOP HALT

        CALL PROC; ***
INT_CNT LD A, 00

        LD BC, # 7FFE

        IN A, (C)

        AND 1

        JR NZ, LOOP

        IM 1

        RET

; HL = 4000 to the time of the procedure was
; Equals approximately 1.5 interrupt
; Pentagon'e without turbo mode.
PROC LD HL, 4000
L1 DEC HL

        LD A, H

        OR L

        JR NZ, L1

        RET

IM2 PUSH HL

        LD HL, INT_CNT +1

        INC (HL)

        POP HL

        EI

        RET
 Type in this program, compile,
Sign in STS, protrassiruyte to line
marked'***' and her then SS + T.
Then look at the register SP - I
its value after all these actions
becomes # FB00.
 But if after the line CALL PROC
add a few NOP'ov (enough to
JP x command does not cover the variable
INT_CNT), then everything will work fine.
So, in all likelihood, this problem
arises from the fact that the STS when you
SS + T just after the team puts the point
Stop and start it.
 Yes, forgot to say that this was checked
in the STS v4.3, possibly in other versions of all
normal.





Other articles:

AOSS - "The scene is sick" experiences Random'a.

AOSS - Raver discusses stsenovoy journalism.

AOSS - an analytical article on the music scene from Andy Fer.

AOSS - how easy is it to be the organizer of the group?

AOSS - On journals (thinking aloud).

AOSS - on the example of the canons of demoscene magazine Deja Vu # 9.

AOSS - Today and Tomorrow domestic demoscene.

AOSS - Spectrum banner network.

Charts - all time favorites.

Charts - current rules (fall edition 1999).

Charts - indexed.

Charts - voting rules.

Coding - 16-bit procedure is fast exponentiation.

Coding - Flying is makrobiblioteku: Memory Management Library.

Coding - Texture Mapping - Implementation of SaiR00S/EI.

Coding - Texture mapping + Phong shading implementation of the Senat / Eternity Industry.

Coding - ZXA library: a library for creating and playing animations.

Coding - A bug in the STS?

Coding - Comments to the sources, published in Scenergy # 1

Coding - the libraries of programming on the Spectrum.

Coding - The principle of packing animations in the demo JAM.

Coding - procedure for rapid multiplication.

Coding - parsing intro Daingy from Cryss / Razzlers.

Demo Party - Cafe'2000: Official invitation

Demo Party - CC999.999 information (eng).

Demo Party - D-Man/EI: Report on Di: Halt: 99.

Demo Party - Hartman: report CC'999.

Demo Party - Maxwell and Mr. John: report CC'999.

Demo Party - Merlin / CC: Report CC'999.

Demo Party - Paradox'99 - as it was, but it would be better if he mUst dIe!!!

Demo Party - PHAT'9: list of visitors.

Demo Party - POL / PHT: report Doxycon '99.

Demo Party - Random / CC: volumetric report CC'999.

Demo Party - SerzhSoft: Legend of the CC'999.

Demo Party - Zlincon 2e3 party: minireportazh.

Demo Party - information about the upcoming party PHAT'0.

Demo Party - Information on demoparti CC999.999.

Demo Party - unofficial results Di: Halt'99 with comments Diver'a.

Demo Party - an overview of demoscene 1999.

Demo Party - report the organizers CAFe'99.

Demo Party - Press release Latvian demopati PHAT'9.

Demo Party - an invitation to Latvia demopati PHAT'9.

Demo Party - a story about a trip to Kazan on Antares CAFe'99

Demo Party - Results CC.999.999

Demo Party - Results CC999.999.

Demo Party - the results of Chaos Construction 999.

Demo Party - Results Computer Art Festival 1999.

Demo Party - Results Doxycon'99.

Demo Party - Results Millenium Party.

Demo Party - Results Paradox'2k demoparty.

Demo Party - Results of the Latvian demopati PHAT'9.

Demo Party - the results of the Rostov party Paradox'99.

Demo Party - reportage Gasman'a with Forever 2e3.

Demo Party - a report from Minsk demopati Millennium'2000.

Demo Party - final results Forever 2E3.

Editorial - Opening remarks by Arty.

Editorial - vystupitelnoe word from Random.

Editorial - pens Raver'a entitled "Scenes."

Groups - survey of operating groups: Amaltiya Incoropration Software.

Groups - survey of operating groups: Antares.

Groups - survey of operating groups: Ascendancy Creative Labs.

Groups - survey of operating groups: Crushers.

Groups - survey of operating groups: E-mage.

Groups - survey of operating groups: Eternity Industry.

Groups - survey of operating groups: Excess team.

Groups - survey of operating groups: Extreme Entertainment.

Groups - survey of operating groups: Fatality.

Groups - survey of operating groups: Jupiter 77.

Groups - survey of operating groups: Proxima Centauri.

Groups - survey of operating groups: RaZZLeRs.

Groups - survey of operating groups: RUSH.

Groups - survey of operating groups: Smash Hackers Band.

Illegal Corner - Razzlers justified for the release of the demo First Association.

Illegal Corner - Scenergy Release Charts - Competition crack.

Illegal Corner - Welcome to Scenergy Release Charts (SRC).

Illegal Corner - softografiya Fatality Group.

Lits - Pussy: the history of creation of the famous game from the Fatality.

Lits - Scenergized beyond the belief.

Lits - speed.

Lits - History of Education Association Rostov PartyZans.

Lits - the story of the game "White Eagle - Comrade known."

Lits - the story of how Fatality produces toys.

Mail Box - letter: Ellvis and Fatality happy Scenergy # 1, Ulterior defy Antares and BrainWave, Realtimer disappointed.

News - Doom'a will not!

News - Virtual pati Millennium, X-Raizor returned to the stage, Andrew Fer organized a new group, the failure of the German party Spectrology, news from 3SC, Zero Team, Extreme.

News - The view of Megus'a dentro compo SS'2000.

News - News from the OHG, Delta Hackers Group, Die Crupps, Volgodonsk spektrumisto and from a group SpeedWay.

Scenergy - addresses to communicate with the editors.

Scenergy - thanks to the sponsors of the magazine.

Scenergy - new in the shell of the journal.

Scenergy - the promised video articles will not ...

VIP - Random interviews Unbel! Ever / Sage / XTM.

VIP - The most noble tale of the scene.

VIP - an interview with Arny and Mythos, the creators of Elite clone game Awaken.

VIP - An interview with Fatality, widely known and crackers Game Maker

VIP - an interview with one of the authors of the game Elite.

VIP - an interview with one of the most progressive artists in the Spectrum Diver/4D.

VIP - interviews with Random'a some PC-magazine

Warez Pack - description of Inertia Player.

Warez Pack - description of the demo 1140.

Warez Pack - description of the import demo 'no work'.


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
IS-DOS - programmers No 2
Topic - Tusovka: CSP'99 - interview with Slack Den.
System - Spectrum-compatible computers: Pentagon, ATM-Turbo, Scorpion.

В этот день...   21 November