Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 05:07:09 *
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] 2   Go Down
  Print  
Author Topic: Pic-Hexer - A basic program that converts a full 92*62 pic into hex for asm usage  (Read 486 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
DRAGONLORD343
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 17 May, 2012, 23:17:28
Date Registered: 16 February, 2012, 19:53:21
Posts: 14

Topic starter
Total Post Ratings: 0

View Profile
« on: 25 April, 2012, 16:35:00 »
0

I got tired of looking for a way to do this on the computer and decided to make an on-calc program to do it for me.
It works now but for those who want to make the pic 96*62... can't do that in basic so i'm now making one in asm.
Logged
jsj795
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 26 April, 2013, 03:43:03
Date Registered: 28 July, 2009, 22:10:35
Location: __̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.___
Posts: 1087


Total Post Ratings: +81

View Profile
« Reply #1 on: 25 April, 2012, 16:50:56 »
0

are you talking about a monochrome 96x62 picture to Hex converter?

if so I believe there's one right here
http://www.ticalc.org/archives/files/fileinfo/437/43718.html
Logged



Spoiler for funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
turiqwalrus
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:55:05
Date Registered: 25 November, 2010, 00:38:42
Location: In a shadowed grotto far from the eyes of the world.
Posts: 706


Total Post Ratings: +42

View Profile
« Reply #2 on: 25 April, 2012, 17:09:05 »
0

And this is an online picture-to hex converter Wink
Logged
DRAGONLORD343
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 17 May, 2012, 23:17:28
Date Registered: 16 February, 2012, 19:53:21
Posts: 14

Topic starter
Total Post Ratings: 0

View Profile
« Reply #3 on: 25 April, 2012, 18:21:09 »
0

I've used the online one and it works wonders but it can't help if you dont have internet access and have you seen the size of that on-calc pgrogram its 11446 bytes. yeah i understand he has all the extra functions but it still takes up a lot of memory.
« Last Edit: 25 April, 2012, 18:22:08 by DRAGONLORD343 » Logged
jsj795
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: 26 April, 2013, 03:43:03
Date Registered: 28 July, 2009, 22:10:35
Location: __̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.___
Posts: 1087


Total Post Ratings: +81

View Profile
« Reply #4 on: 25 April, 2012, 18:24:54 »
0

well if you decide to make one for yourself, feel free to share with others Cheesy
Logged



Spoiler for funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 18:13:08
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50196


Total Post Ratings: +2611

View Profile WWW
« Reply #5 on: 25 April, 2012, 18:25:37 »
0

Yeah that can be a problem indeed, plus we have to not take online tools for granted, since after a while their author might abandon their site and shut it down (like what happened to the Map and Sprite editors by Aichi, because the author decided a Minecraft server would be far more important and useful than these two amazing tools). But of course you can keep it archived and use something like Doors CS to run it directly from archive (or Zstart does that too I think). That way you don't need to manually unarchive/archive your stuff over and over and you save on GarbageCollecting time.

Any screenshots of your editor by the way?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
DRAGONLORD343
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 17 May, 2012, 23:17:28
Date Registered: 16 February, 2012, 19:53:21
Posts: 14

Topic starter
Total Post Ratings: 0

View Profile
« Reply #6 on: 25 April, 2012, 18:32:12 »
0

working on getting some but i got to reinstall wabbitemu it messed up somehow.

my basic one is only 151 bytes and all you have to do is draw the pic and store it to Pic2 then run this program.
i made it because i also use mimas and it became extremely repetitive to convert them by hand.
« Last Edit: 25 April, 2012, 18:32:37 by DRAGONLORD343 » Logged
turiqwalrus
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: Yesterday at 21:55:05
Date Registered: 25 November, 2010, 00:38:42
Location: In a shadowed grotto far from the eyes of the world.
Posts: 706


Total Post Ratings: +42

View Profile
« Reply #7 on: 25 April, 2012, 19:05:01 »
0

Yeah that can be a problem indeed, plus we have to not take online tools for granted, since after a while their author might abandon their site and shut it down (like what happened to the Map and Sprite editors by Aichi, because the author decided a Minecraft server would be far more important and useful than these two amazing tools). But of course you can keep it archived and use something like Doors CS to run it directly from archive (or Zstart does that too I think). That way you don't need to manually unarchive/archive your stuff over and over and you save on GarbageCollecting time.

Any screenshots of your editor by the way?

Then again, I don't think Cemetech's going to close anytime soon Tongue
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 18:13:08
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50196


Total Post Ratings: +2611

View Profile WWW
« Reply #8 on: 25 April, 2012, 20:47:52 »
0

Yeah that can be a problem indeed, plus we have to not take online tools for granted, since after a while their author might abandon their site and shut it down (like what happened to the Map and Sprite editors by Aichi, because the author decided a Minecraft server would be far more important and useful than these two amazing tools). But of course you can keep it archived and use something like Doors CS to run it directly from archive (or Zstart does that too I think). That way you don't need to manually unarchive/archive your stuff over and over and you save on GarbageCollecting time.

Any screenshots of your editor by the way?

Then again, I don't think Cemetech's going to close anytime soon Tongue
Oh wait I didn't realize it was a Cemetech link. I didn't check carefully because I forgot SC worked with images. I was sure it was Jimbauwen's stuff.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Last Login: Today at 03:03:13
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3739


Total Post Ratings: +598

View Profile
« Reply #9 on: 26 April, 2012, 02:17:49 »
0

If you want ideas or coding help, you can check this out Smiley It can be optimised a bit, but it uses a keyhook so all you do is press a special key combo and voila, the picture hex is in Ans Smiley

http://www.ticalc.org/archives/files/fileinfo/427/42778.html


Actually, I think the source to that is wrong, but it might still help >.> The whole program is 72 bytes Cheesy

EDIT: That is over two years old o.o That could really use an update Big frown
« Last Edit: 26 April, 2012, 02:18:54 by Xeda112358 » Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


DRAGONLORD343
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 17 May, 2012, 23:17:28
Date Registered: 16 February, 2012, 19:53:21
Posts: 14

Topic starter
Total Post Ratings: 0

View Profile
« Reply #10 on: 26 April, 2012, 14:54:07 »
0

If you want ideas or coding help, you can check this out Smiley It can be optimised a bit, but it uses a keyhook so all you do is press a special key combo and voila, the picture hex is in Ans Smiley

http://www.ticalc.org/archives/files/fileinfo/427/42778.html


Actually, I think the source to that is wrong, but it might still help >.> The whole program is 72 bytes Cheesy

EDIT: That is over two years old o.o That could really use an update Big frown

Thanks that should actually help. and by the way i'm also needing help on reading and writing to specific programs using asm if someone could help me with that
Logged
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Last Login: Today at 03:03:13
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3739


Total Post Ratings: +598

View Profile
« Reply #11 on: 26 April, 2012, 20:17:53 »
0

Hmm, do you have the names of these programs, or does the user have to pass an argument telling what program to read/write from?

EDIT: Here is some example code for getting the location of a var you have the name of:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
     ld hl,Name
     rst rMOV9TOOP1      ;Copies 9 bytes at HL to OP1. In otherwords, it copies the name of the program to OP1.
     bcall(_ChkFindSym)    ;Searches for the variable, returns info:
;c flag set if the variable was not found
;HL points to the VAT entry
;DE points to the size bytes of the data
;B is the flash page the data is on
;C is the length of the name
;The lower 5 bits of A is the type of the var.
     ret c                     ;quit because it doesn't exist
     ld a,b                    ;This is 0 if it is in RAM, otherwise, it is the flashpage number
     or a                      ;This is a sneaky trick to check if A is 0. It is smaller and faster than cp 0
     ret nz                   ;quit if it is not zero (meaning it is archived).
;If it made it this far, the var exists in RAM. DE points to the size bytes.
;I typically use those, so I'll store it to BC:
     ex de,hl               ;swap HL and DE
     ld c,(hl)             ;loads the lower byte into C. you cannot do ld c,(de), this is why I used ex de,hl
     inc hl                ;HL now points to the next byte
     ld b,(hl)             ;B now contains the higher byte of the size. Now BC is the size of the var.
     inc hl                ;HL now points to the start of the program data.
;(this is just randomness on my part, feel free to try it. It will destroy all the data in the program, though)
     ld d,0
DoStuffLoop:
     ld a,d
     and 00001111%
     ld d,a
     inc d
     add a,'A'
     ld (hl),a
     cpi                     ;Cheap trick. This decrements BC, increments HL, returns PE if BC is not 0.
     jp pe,DoStuffLoop
     ret
Name:
     .db ProgObj,"NAME",0     ;This is the name of the program with PrgObj in front and 0 at the end.


* TestEx0.gif (31.75 KB, 192x128 - viewed 63 times.)
« Last Edit: 26 April, 2012, 20:57:03 by Xeda112358 » Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


DRAGONLORD343
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 17 May, 2012, 23:17:28
Date Registered: 16 February, 2012, 19:53:21
Posts: 14

Topic starter
Total Post Ratings: 0

View Profile
« Reply #12 on: 27 April, 2012, 14:59:56 »
0

Hmm, do you have the names of these programs, or does the user have to pass an argument telling what program to read/write from?

EDIT: Here is some example code for getting the location of a var you have the name of:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
     ld hl,Name
     rst rMOV9TOOP1      ;Copies 9 bytes at HL to OP1. In otherwords, it copies the name of the program to OP1.
     bcall(_ChkFindSym)    ;Searches for the variable, returns info:
;c flag set if the variable was not found
;HL points to the VAT entry
;DE points to the size bytes of the data
;B is the flash page the data is on
;C is the length of the name
;The lower 5 bits of A is the type of the var.
     ret c                     ;quit because it doesn't exist
     ld a,b                    ;This is 0 if it is in RAM, otherwise, it is the flashpage number
     or a                      ;This is a sneaky trick to check if A is 0. It is smaller and faster than cp 0
     ret nz                   ;quit if it is not zero (meaning it is archived).
;If it made it this far, the var exists in RAM. DE points to the size bytes.
;I typically use those, so I'll store it to BC:
     ex de,hl               ;swap HL and DE
     ld c,(hl)             ;loads the lower byte into C. you cannot do ld c,(de), this is why I used ex de,hl
     inc hl                ;HL now points to the next byte
     ld b,(hl)             ;B now contains the higher byte of the size. Now BC is the size of the var.
     inc hl                ;HL now points to the start of the program data.
;(this is just randomness on my part, feel free to try it. It will destroy all the data in the program, though)
     ld d,0
DoStuffLoop:
     ld a,d
     and 00001111%
     ld d,a
     inc d
     add a,'A'
     ld (hl),a
     cpi                     ;Cheap trick. This decrements BC, increments HL, returns PE if BC is not 0.
     jp pe,DoStuffLoop
     ret
Name:
     .db ProgObj,"NAME",0     ;This is the name of the program with PrgObj in front and 0 at the end.

This routine might work for now but i've created another topic for this question here
Logged
DRAGONLORD343
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 17 May, 2012, 23:17:28
Date Registered: 16 February, 2012, 19:53:21
Posts: 14

Topic starter
Total Post Ratings: 0

View Profile
« Reply #13 on: 01 May, 2012, 18:14:02 »
0

uploaded example


* hexpic.gif (863.89 KB, 192x128 - viewed 46 times.)
Logged
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Last Login: Today at 03:03:13
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3739


Total Post Ratings: +598

View Profile
« Reply #14 on: 01 May, 2012, 19:45:48 »
0

I take it that was BASIC? This is what the screen dump program does (check the screenie). As a note, the program I linked to before does have the opcode with it...


* HexPic Example.gif (216.13 KB, 192x128 - viewed 39 times.)
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


Pages: [1] 2   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.505 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.