Odyssey paper #04
11 января 1999 |
![]() |
Bysterenko! - the fastest algorithm / procedure for drawing a line.

Bysterenko! ____________ (C) Phantom Lord'97 We immediately thought of Suva from time to time our algorithms, and today the air pass fastovy algorithm for constructing a straight line on the screen: at the inlet SP - A pointer to the address table screen E - the smaller of the delta X and Y D - the larger of the deltas BC - offset X in the familiarity A - D SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 7, (HL) SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 6, (HL) SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 5, (HL) SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 4, (HL) SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 3, (HL) SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 2, (HL) SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 1, (HL) SUB E JR NC, $ +5 ADD A, D POP HL ADD HL, BC SET 0, (HL) INC L INC C Naturally, these pieces will be four. Also have a point count entry and exit. But this should not make big deal.
Other articles:
Similar articles:
В этот день... 1 October
Scream #04(scl),
Bred #02,
Screamergy #01,
Bred #01,
Open Letters #08,
Millenium #01,
Body #2F,
Deja Vu #0A,
X-Magazine #17,
ZX Chart #01,
Skimer #02,
X-Magazine #12,
Body #17,
Bugs #01,
Adventurer #10,
X-Magazine #07,
Wallpaper #05,
Proton #48,
ZX Pilot #29,
Cheat #03 demo,
Proton #48,
Deja Vu #06,
Deja Vu #02,
ZX-News #41,
Spectrum Progress #01,
Nicron #01,
Maximum #18,
ZX Digest #02,
Speccy #01,
Emulate #02,
Speccy #01,
200 #B,
Spectrofon #09,
ZX Revija #01