Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ok, then: Obfuscation anyone?
#7
A% = 26 * 5 / 10
' A% = 26 * 1/2
' A% = 13
B% = &H9FFF
SCREEN A%
' SCREEN 13
DEF SEG = B% + 1
' B% + 1 = &H9FFF + 1 = &HA000, screen 13 segment.
DO WHILE NOT C& = ( (7999.375) * 8 ) + 5
' 7999.375 * 8 = 6395
' 63995 + 5 = 64000, number of pixels in screen 13, 320x200.
D& = (COS(270) * 4) - SIN(180) + SIN(180)
' COS(270) = .98. COS(270) * 4 = 3.94, or 4 as integer.
' SIN(180) + SIN(180) = 0, 3.94 + 0 = 3.94.
POKE C&, D&
' C& = offset, D& = 3.94, which is interpreted as 4, red,
' since POKE takes integer arguements.
C& = C& + (2 - ((2 * 2) - 3))
' 2 * 2 = 4
' 4 - 3 = 1
' 2 - 1 = 1
' C& = C& + 1
LOOP

So it sets screen 13, points to video memory, loops thru every pixel and plots a red dot, making all the screen red.

There you go Wink
Reply


Messages In This Thread
Ok, then: Obfuscation anyone? - by Agamemnus - 03-07-2003, 10:55 PM
Ok, then: Obfuscation anyone? - by Agamemnus - 03-15-2003, 11:30 PM
Ok, then: Obfuscation anyone? - by toonski84 - 03-15-2003, 11:50 PM
Ok, then: Obfuscation anyone? - by someone42 - 03-26-2003, 02:37 PM
Ok, then: Obfuscation anyone? - by BlueKeyboard - 03-26-2003, 10:08 PM
Ok, then: Obfuscation anyone? - by Joakim - 03-27-2003, 12:32 AM
Ok, then: Obfuscation anyone? - by BlueKeyboard - 03-27-2003, 02:15 AM
Ok, then: Obfuscation anyone? - by BlueKeyboard - 03-27-2003, 08:46 PM
Ok, then: Obfuscation anyone? - by Neo - 03-31-2003, 02:42 PM
Ok, then: Obfuscation anyone? - by Agamemnus - 03-31-2003, 06:14 PM
Ok, then: Obfuscation anyone? - by BlueKeyboard - 03-31-2003, 10:23 PM
Ok, then: Obfuscation anyone? - by seph - 05-27-2003, 12:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)