Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 04:45:07 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 86 87 [88] 89 90 ... 110   Go Down
  Print  
Author Topic: Axe Q&A -  (Read 59518 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
leafy
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 20:10:08
Date Registered: 26 December, 2010, 05:27:03
Location: the ninth circle of hell
Posts: 1545


Total Post Ratings: +371

View Profile WWW
« Reply #1305 on: 10 January, 2012, 05:35:54 »
0

Buff(768)->GDB1, or something like that.
Logged

In-progress: Blastlabs, TMJO, qb?, VVVVVV?
Finished: Tag, Tap, MFQT, Nyan
Dead: Graviter
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 01:40:03
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #1306 on: 10 January, 2012, 05:37:47 »
0

Anything that ends in →GDB1 defines GDB1 (a pointer).
Logged




parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 23:14:32
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1421


Total Post Ratings: +80

View Profile WWW
« Reply #1307 on: 10 January, 2012, 05:38:08 »
0


Buff(768)->GDB1, or something like that.
Anything that ends in →GDB1 defines GDB1 (a pointer).
ah, ok.
thanks. Cheesy
« Last Edit: 10 January, 2012, 05:38:49 by parser padwan » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Today at 04:12:47
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5643


Total Post Ratings: +589

View Profile
« Reply #1308 on: 10 January, 2012, 05:49:16 »
0

Just make sure that you define GDB1 with having enough memory, because if you do something like [0000]->GDB1 and then try to copy 768 bytes into GDB1, you will end up overwriting a whole bunch of data, since GDB1 is not being resized
Logged

parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 23:14:32
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1421


Total Post Ratings: +80

View Profile WWW
« Reply #1309 on: 13 January, 2012, 05:16:01 »
0

which is faster?

this:

1
2
3
:Rect(0,0,96,64)
:RectI(1,1,94,62)

or this:

1
2
3
4
5
6
7
:Rect(0,0,94,62
:For(J,1,94
:For(K,1,62
:Pxl-Off(J,K
:End
:End

^^^note that I'm trying to get a border around the screen. I'm not worried about size, just speed.
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #1310 on: 13 January, 2012, 05:45:47 »
0

I would use

1
2
RectI(0,,+96,-32)
RectI(1,,+93,-32)
Logged
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Today at 04:12:47
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5643


Total Post Ratings: +589

View Profile
« Reply #1311 on: 13 January, 2012, 05:50:21 »
0

which is faster?

this:

1
2
3
:Rect(0,0,96,64)
:RectI(1,1,94,62)

or this:

1
2
3
4
5
6
7
:Rect(0,0,94,62
:For(J,1,94
:For(K,1,62
:Pxl-Off(J,K
:End
:End

^^^note that I'm trying to get a border around the screen. I'm not worried about size, just speed.

The first would be much faster.  Also, chattahippie that code you posted doesn't do the same thing.  Yours creates an empty rectangle with inverted borders.  Parser's code creates a white rectangle with filled borders.
Logged

chattahippie
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: 27 March, 2013, 05:21:38
Date Registered: 19 July, 2011, 04:13:49
Location: Somewhere
Posts: 358


Total Post Ratings: +27

View Profile
« Reply #1312 on: 13 January, 2012, 05:53:26 »
0

The first would be much faster.  Also, chattahippie that code you posted doesn't do the same thing.  Yours creates an empty rectangle with inverted borders.  Parser's code creates a white rectangle with filled borders.
True, I was assuming parser was starting from a blank screen
Logged
Runer112
Anti-Riot Squad
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 04:02:04
Date Registered: 02 July, 2009, 06:38:05
Posts: 1680


Total Post Ratings: +493

View Profile
« Reply #1313 on: 13 January, 2012, 06:47:43 »
+1

You started out pretty good with 68,006 cycles

Rect(0,0,96,64)
RectI(1,1,94,62)


Then you went way in the wrong direction with 2,614,503 cycles Big frown

Rect(0,0,96,64)
For(J,1,94)
For(K,1,62)
Pxl-Off(J,K)
End
End


And here's my Runer-optimized™ speed/size blend, coming in at 16,303 cycles; that's faster than ClrDraw! Evil Laugh

ᴇ80FF→{L₆+11}ʳ
Copy(L₆+11,-1,11)ʳ
Copy(,L₆+756,12)
ᴇ0100→{L₆+22}ʳ
Copy(L₆+22,-1,9)ʳ
Copy(-1,+12,61*12)
« Last Edit: 13 January, 2012, 06:48:08 by Runer112 » Logged
C0deH4cker
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: 19 December, 2012, 22:22:42
Date Registered: 18 October, 2011, 23:19:08
Location: $9D95
Posts: 258


Total Post Ratings: +10

View Profile WWW
« Reply #1314 on: 13 January, 2012, 23:47:09 »
0

Super fast and completely obfuscated. Classic Runer-optimizedTM unreadable axe code.
« Last Edit: 13 January, 2012, 23:48:04 by C0deH4cker » Logged

parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 23 May, 2013, 23:14:32
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1421


Total Post Ratings: +80

View Profile WWW
« Reply #1315 on: 13 January, 2012, 23:54:44 »
0

Wow thanks guys shocked

also, I like the Runer-optimizedTM unreadable code. Cheesy
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
Freyaday
The One And Only Serial Time Killing Catboy-Loli-Ballerino
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 01:41:54
Date Registered: 24 February, 2011, 17:10:56
Location: ¿¿¿
Posts: 1890


Total Post Ratings: +110

View Profile WWW
« Reply #1316 on: 14 January, 2012, 01:54:46 »
0

Runer, quick, I need a white rectangle with a 2px black border!
Logged

In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


Beware the Bitulator! ,.,./`My Artwork!
Runer112
Anti-Riot Squad
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 04:02:04
Date Registered: 02 July, 2009, 06:38:05
Posts: 1680


Total Post Ratings: +493

View Profile
« Reply #1317 on: 14 January, 2012, 01:56:26 »
+1

ᴇC0FF→{L₆+23}ʳ
Copy(L₆+23,-1,23)ʳ
Copy(,L₆+744,24)
ᴇ0300→{L₆+34}ʳ
Copy(L₆+34,-1,9)ʳ
Copy(-1,+12,59*12)
« Last Edit: 14 January, 2012, 01:57:27 by Runer112 » Logged
leafy
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 20:10:08
Date Registered: 26 December, 2010, 05:27:03
Location: the ninth circle of hell
Posts: 1545


Total Post Ratings: +371

View Profile WWW
« Reply #1318 on: 14 January, 2012, 01:58:31 »
0

Runer! Quick! How does that even work?
Logged

In-progress: Blastlabs, TMJO, qb?, VVVVVV?
Finished: Tag, Tap, MFQT, Nyan
Dead: Graviter
Runer112
Anti-Riot Squad
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 04:02:04
Date Registered: 02 July, 2009, 06:38:05
Posts: 1680


Total Post Ratings: +493

View Profile
« Reply #1319 on: 14 January, 2012, 02:08:46 »
0

.Draw a byte of top border (88-95,1)
.Draw a byte of left border (0-7,2)
ᴇC0FF→{L₆+23}ʳ

.Copy byte (88-95,1) of top border to draw rest of top border (0-87,1) and (0-95,0)
Copy(L₆+23,-1,23)ʳ

.Copy byte (0-7,0) of top border to draw bottom border (0-95,62) and (0-95,63)
Copy(,L₆+744,24)

.Draw byte of right border (94-95,2)
.Draw byte of middle (80-93,2)
ᴇ0300→{L₆+34}ʳ

.Copy byte (80-87,2) of middle to rest of third row middle (8-79,2)
Copy(L₆+34,-1,9)ʳ

.Copy third row (0-95,2) to fourth through sixty-second rows (0-95,3-61)
Copy(-1,+12,59*12)
« Last Edit: 14 January, 2012, 02:12:19 by Runer112 » Logged
Pages: 1 ... 86 87 [88] 89 90 ... 110   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.298 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.