Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
18 May, 2013, 13:02:50 *
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]   Go Down
  Print  
Author Topic: store arbitrary buffers to L3 and L6? -  (Read 315 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
willrandship
Omnimagus of the Multi-Base.
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 08 May, 2013, 01:10:38
Date Registered: 11 April, 2010, 03:08:32
Location: Between Venus and Mars
Posts: 2638


Topic starter
Total Post Ratings: +66

View Profile
« on: 30 April, 2011, 19:37:49 »
0

In a cellular automata program I'm making, I need two extra buffers to store the next generation in, so I did this:

Zeros(768)->BB (BackBuffer)
zeros(768)->FB (Frontbuffer)

and for the commands I simply draw to those instead of L3 and L6.

However, once it's finished updating, I need a way to dump FB into L6 (that's front, right?) and BB into L3.

The only way I can figure to do it is BB->DispGraph:StoreGDB:StorePic (BB->screen->L6->L3) and then FB->Dispgraph:StoreGDB but that's two whole frames of semi-garbage I don't want. Any help?

And, it's not conway's, it has 4 cell states so I need the greyscale.


Edit: BTW, BB->L6 gives a bad symbol error, and it would only do the first byte anyways, right?
« Last Edit: 30 April, 2011, 19:41:13 by willrandship » Logged

FinaleTI
Believe in the pony that believes in you!
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 03 May, 2013, 16:35:01
Date Registered: 04 June, 2010, 00:34:27
Location: Alteria
Posts: 1818


Total Post Ratings: +118

View Profile WWW
« Reply #1 on: 30 April, 2011, 19:44:16 »
0

Try this:

1
2
3
4
5
6
7
8
Zeros(768)->GDB0BB
Zeros(768)->GDB0FB

...code...

Copy(GDB0BB,L3,768)
Copy(GDB0FB,L6,768)
Logged





So, yeah, I have a blog now. Nothing special, just your average ghost town.

Spoiler for Projects:
Spoiler for Pokemon TI:
Map engine is going to be redone from scratch, since I was lacking in organization last time. With a project as big as Pokemon, planning and organization is key, so that will probably be the brunt of the work done on this project for the time being.

Spoiler for Nostalgia:
Being worked on. Nothing really new to put here, but it's being worked on.

Spoiler for Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack.

Spoiler for Nostalgia Origins: Sky's Story:
Currently on hold. I am unsure of whether this will remain DCS7 Hybrid BASIC or if it will use Batlib, Grammer or perhaps Axe.
This may see more progress once a demo of Nostalgia is released.
willrandship
Omnimagus of the Multi-Base.
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 08 May, 2013, 01:10:38
Date Registered: 11 April, 2010, 03:08:32
Location: Between Venus and Mars
Posts: 2638


Topic starter
Total Post Ratings: +66

View Profile
« Reply #2 on: 30 April, 2011, 19:49:17 »
0

Ooh, that is nice! I completely forgot about the copy command! Thanks!

Now all I have left is to work out how to change what cells are on the screen, with user input, but that should be pretty quick!

Oh, do interrupts work during getkeyr?

Also, any way to make a compiled axe prog read from a Pic in RAM? as in, not [Picvar] since that incorporates it on compiling.

Edit: WOAH! weird crash! My nspire is still running, but it has corrupted pixels in the top of the emu, in the grey area! (OS 1.4) And they come back when I turn the emu off and on again!

Edit2: Gone after a full reboot, but they come back again if I rerun the prog!
« Last Edit: 30 April, 2011, 20:04:50 by willrandship » Logged

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 05:46:51
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7812


Total Post Ratings: +706

View Profile WWW
« Reply #3 on: 02 May, 2011, 15:48:43 »
0

Oh, do interrupts work during getkeyr?

I don't think so. I think it has an implied LnReg , but I'm not sure.

Also, any way to make a compiled axe prog read from a Pic in RAM? as in, not [Picvar] since that incorporates it on compiling.

GetCalc("Pic1") finds Pic1 and returns its pointer. It's organized the same as any other graph buffer, except it's 756 bytes (96x63) instead of 768 (96x64).
Logged




Pages: [1]   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.255 seconds with 31 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.