Deja Vu #09
13 ноября 1999

Coding - Conversion of numbers from the stack calculator in the character string.

<b>Coding</b> - Conversion of numbers from the stack calculator in the character string.
(C) Ilya Morozov / Death Moroz
__________________________________________



  Conversion of numbers from the stack calculator

           a character string.



   With a built-in calculator, the results are on top of the 
stack kalkulyatornogo in integral form. To print them a routine

Print_FP.No it prints the standard tools, which are now rarely 
used. Typically, the program works with own procedures for 
printing, for example, 42 characters per line. It can be 
attributed to a new flow. But it must be pretty close 
communication with the operating system Spekki.Predpochtitelney 
simply convert that number into a string of characters and 
dispose of it at their discretion. But program for such a 
transformation will rather complicated and cumbersome. Simply 
take advantage of the ROM. 

   The first thing that comes to mind - Print_
FP. It prints the number from the top of the stack
calculator in the current thread. Means to
substitute procedure for deriving the symbol of the procedure 
sending bytes in memory. But far too cumbersome. However 
Print_FP with their work creates a symbolic representation 
numbers, and only then calls the routine. The buffer is in the 
workspace calculator at # 5CA1-# 5CAA.Eto two

memory calculator MEM3 and MEM4.
Now, simply as an Inference Procedure for the flow of supply 
and RET cause Print_FP, to consider a string

representation of numbers. This is easier, though
still need to fiddle with the channels. Simply
only use for this function
calculator STR $. Converter takes 7
bytes.

CONVERT RST # 28; call calculator

        DB # 2E, # 38; Teams calculator:

                           ; STR $ converts the number in the 
string. 

                           , Now on the stack the parameters of 
this 

                           ; Thong. In DE-address, in BC-length.

                           ; END_CALC - output from the 
calculator. 

        CALL # 2BF1; Sub-STK-FETCH rewritten
                           ; Vaeth number from the stack 
calculator 

                           ; In registers A, B, C, D, E. And 
since 

                           ; After surgery STR $ stack we find
                           ; Converge options thong, then they

                           , Transferred to a pair of DE and BC.

        RET



   That's it. It remains to copy the string
in a more secure place than the workspace
interpreter.





Other articles:

Apperativchik - the entry of the authors.

Apperativchik - On the control of Deja Vu.

Apperativchik - Freebie number 2: pirates and hacked versions of the magazine.

Apperativchik - Dejavu Info: How to buy the magazine Deja Vu.

Topic - Swap: "From letters to parcels" as found in the city Spektrumistov.

Topic - Tusovka: CSP'99 - interview with Slack Den.

Topic - Tusovka: CSP'99 - an interview with the main coder'om young Novosibirsk group AREASoft

Topic - Tusovka: CSP'99 - interview with one of the publishers 'electronic journal Deja Vu' Daniel / Playgear Co. / Binary Dimension.

Topic - Tusovka: CSP'99 - interview with one of Rybinsk of Cav / Auryn.

Topic - Tusovka: CSP'99 - an interview with the father of Playgear cool uncle Ze Pagan.

Topic - Tusovka: CSP'99 - an interview with the main coder'om Flash and concurrently one of the founders of the group - Alex Rider.

Topic - Tusovka: CSP'99 - poll as the party was held in a nutshell, the general impression.

Topic - Tusovka: Legend of the way passed Crazy Siberian Party 1999.

drop of solder - HD discs: Finalization of the drive controller to work with HD-disks.

drop of solder - The decision PROBLEMS 1.2MB drive.

drop of solder - increase the amount of RAM up to 1024K on SPECCY option Taganrog 128K!

drop of solder - circuit programmer for chip-only memory (ROM).

drop of solder - a dot-matrix printers.

drop of solder - ISA-Spectrum: card inserted into the ISA slot is IBM, which is part or a complete computer ZX-Spectrum.

Software - demoscene: Obzor'ing demozov: 63 bit III, Jam, Anamnesis, 7 Up, 63 bit IV, DemoDyin, Napalm, Crapmo 2, Bunch of Arce, Devotion, WorkStop, Energy , Yes.

Software - Game Review: MIST: Monstrland Part Two, Bomb Lakes, Marbles, KluXer, 4x4 Puzzle, Soldiers, Boats.

Software - Gun Commander: User's Guide.

Coding - coding for Dummies: civilized way in TR-DOS.

Coding - coding for Dummies: More about one of the ways to survey the keyboard.

Coding - coding for Dummies: How does the "Boot" from the inside.

Coding - coding for Dummies: refine MINI BOOT V3.0.

Coding - how to print 42 characters per line (with trabutami), the procedure is quick print sprites with pixel precision.

Coding - Bystrai printing 64 characters per line.

Coding - Conversion of numbers from the stack calculator in the character string.

Coding - fast print 2x2 sprite familiarity, up to familiarity.

Coding - Hrust Library svobodnopasppostpanyaemaya library window procedure by means of eccentricity can be packaged and paspakovyvat VARIOUS data.

Coding - Error Handling TR-DOS when working through # 3D13.

Coding - a set of procedures for constructing the user interface.

Coding - pishim virus invisible to TR-DOS.

Another world - The illusion of safety: Terrifying tales of Windows security and the Internet (Part One).

Hall of Fame - 3 methods to distinguish pealny ZX Spectrum from emulyatopov.

Hall of Fame - the charter of the National Fund of the Spectrum (HFSP).

Hall of Fame - Reserves: an attempt to present the perfect ZX Spectrum.

Hall of Fame - boiling: "And there still alive Speccy, sympathy Boxing?" Reflections in hearing.

Hall of Fame - schA say number 1: optimization of procedures, the announcement of the magazine and the new arcade toy.

Hall of Fame - schA say number 1: disassembly and Serg'a Playgear, hacking calling card, the announcement Crazy Siberian Party '2000.

Hall of Fame - A brief history of the Kemerovo group Digital Life Group.

Seven and 1 / 2 - Student mythology.

Seven and 1 / 2 - April Fools' Day 2 (end).

Seven and 1 / 2 - fairy tales for children.

Seven and 1 / 2 - Features a national ruleza or pure Siberian project (the story of Crazy Siberian Party 1999).

Samples pen - memory: story of the game "Black Crow".

Samples pen - story, "Elixir of the Beast."

Samples pen - "Last Warrior".

Advertising - text ads and announcements.

Advertising - a graphical advertising and announcements.


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

Similar articles:
Entry - the contents of rooms.
Worlds "If" - his version of probability "of the Worlds."
Miscellaneous - A Memoir of the Peter modem network for ZX Spectrum - SPbZXNet.
Nove - On updates: ZX-Format # 8, Faultless # 8, Adventurer # 7, Mirror, Oberon # 5, Deja Vu # 4, ZX-Club # 7, Depth # 2, Monstrland, Operation RR Art Work, E.S.E. v1.2, Consul Commander v1.6, TVTest, MSP v1.4, UltraSonic v1.00

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