Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xeda112358

Pages: 1 ... 79 80 [81] 82 83 ... 317
1201
TI Z80 / Re: [Contest] Illusiat 11 Grammer Port
« on: January 21, 2013, 10:58:27 am »
Yeah, 2.43 is what I am using, I don't know what is broken !_!

1202
TI Z80 / Re: Fast Langton's Ant (ASM)
« on: January 21, 2013, 06:21:24 am »
@pimathbraniac: Bug Runer112 to add in a DispGraphPxl-Change( command and that should bring it close to this speed :D
@tr1p1ea: Thanks! I am thinking that there can be more optimisations and since I am not using shadow registers, I might be able to implement a few more things. For example, multiple Ants and inputting a limit on the number of iterations to perform.

EDIT:
First, Runer112 made an awesome optimisation idea on IRC that I want to try at some point. It will bloat the code a little more, but I am looking to speed things up without regard for memory needs. At the moment, it takes 305 bytes on calc, which is nice and small.

Second, you can now have anywhere from 1 to 128 ants on the screen! Unfortunately, this new version works at half the speed, but it is still pretty fast. Unfortunately, I had to make this version in hex (at the moment), so the source isn't presentable. When ORG comes back online, I will try to make sure the assembly source matches the hex and release it.

1203
TI Z80 / Re: FileSyst
« on: January 21, 2013, 06:15:01 am »
Currently it is case sensitive. I was thinking of making it not case sensitive for the extension part of the name, but I am trying to figure out the best approach for the rest of the name. For example, DOnkeyKong.ION is different from DonkeyKong.ION. I could make the file searching code recognise the two as the same name, though. Do you think this would be a good idea?

1204
TI Z80 / Re: FileSyst
« on: January 20, 2013, 04:13:59 pm »
You need DoorsCS as well as DocDE7 to open .DOC7 files.

1205
TI Z80 / Fast Langton's Ant (ASM)
« on: January 20, 2013, 03:44:45 pm »
I was doing laundry again, today, and I thought of a neat way to go about making Langton's Ant in assembly. To give an idea of the speed it runs at, it gets through 10000 iterations in about a second, while updating the screen at each iteration (at 6MHz). This means that you can simulate over 1000000 iterations in under two minutes, on a TI-83+ !

I am sure there are optimisations that can be made, since I threw it together in about an hour and spent another hour tweaking things.

Specifics:
-It uses the whole screen, which is treated as a toroidal (not sure if that is the right word). Basically, if the ant goes of the left edge of the screen, it wraps around to the right.
-Press clear to exit
-It uses whatever contents are on the graph screen as the starting board.
-It only updates one byte at a time in the LCD, that is how it can update so fast.

I might be able to add a way to make it stop after a certain number of iterations, too, if that would be useful. I am just trying to think of a very efficient way of doing that using a 48-bit value for an input x.x Hmm, I might need to use daa for this one >.>

EDIT: For comparison purposes, I downloaded another Langton's Ant program (which is 30 bytes smaller). The screenie is attached. I downloaded another version, but since that used 3 ants, I didn't think it was an accurate comparison. Plus, it used MirageOS and was 62 bytes larger.

1206
TI Z80 / Re: [Contest] Illusiat 11 Grammer Port
« on: January 20, 2013, 09:11:14 am »
Ohmygosh, Yeong is teh greatest :D  :w00t: (Sorry, there is a reason for why I wasn't the cheerleader >.>)

Dear Yeong,

You know we will all still love you here.


Unless you don't finish this project.

Sincerely,
Zeda

P.S.-Fahahaha. Fwaha. Fwa.


Just kidding, but seriously, like Art_of_Camelot said, you are a decent programmer and you are pretty good with making things look really nice :) You've already made a pretty cool program and I've only seen part of it o.o

1207
Humour and Jokes / Re: Funny #omnimaga quotes (NSFW)
« on: January 19, 2013, 10:17:57 pm »
Quote

jacobly           .xeda ld a,const
Xeda112358        3E
Xeda112358        , well, 3E**, depending on how you want it
calc84maniac      jacobly, hit me next
jacobly           .calc84 ld hl,const
calc84maniac      21**
calc84maniac      **
Xeda112358        :D
Xeda112358        ld hl,(address) = ED6B****
Xeda112358        >.>
*        Xeda112358  runs
calc84maniac      or maybe 2A**** :P
Xeda112358        hehe
Xeda112358        I wonder if some assemblers just don't ever use ED6B or ED63?
pimathbrainiac    .pimathbrainiac ld hl, const
Xeda112358        I wonder if some assemblers do use that? o_O
calc84maniac      I think yours would crash TI's stupid Nspire z80 emulator D:
Xeda112358        really o_O
calc84maniac      probably, since it's not "official"
Xeda112358        what if I was using it for a key delay and to load HL with info ? !__!
pimathbrainiac    /pimath ld hl, const
pimathbrainiac    .pimath ld hl, const

Xeda112358        hehe
pimathbrainiac    how do Xeda and calc84 work, but not me?
Xeda112358        @pimathbraniac: Calc and I were just responding to Jacobly's call
pimathbrainiac    ooooooooooooohhhhhhhhhhhhhhhhhhhhh!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11
jacobly           lol
Xeda112358        that was us, not a bot
*        pimathbrainiac  facepalms
calc84maniac      or that's what we want you to think >_>
*        calc84maniac  is totally not a bot
Hehehe, that was funny :P

1208
Anime and Manga / Manga Downloader
« on: January 19, 2013, 12:41:09 am »
Recently I made a manga downloader tool for my spouse who often likes to get on CityManga. The problem is that you need internet for that. Since I made a comic downloader for Questionable Content and XKCD, I decided to make a CityManga downloader. Unfortunately, ze does not program, so  had to make it easy to use, unlike my other programs.

It is programmed in Python, so you will need that on your computer, but all you need to do is run the program, type the name of the manga and press enter. For example, ze was finishing up Angel Hunt, the url used "angel_hunt" so that is what you would type. The program will make a folder with the name, then proceed to download each page of each chapter. Each page will be labeled with chapter#_page#, too.

I am sure the program can be optimised a bunch. I know very little Python, so I brute forced a lot of the code .__.
Here is the code, download, and screenshot:
Code: [Select]
import urllib
import urllib2
import os
manganame=raw_input("Manga Name:")
if not os.path.exists(manganame): os.mkdir(manganame)
os.chdir(manganame)
url="http://citymanga.com/"+manganame
f = urllib2.urlopen(url)
a="0"
while a[:20]!=" <b>Chapters:</b> ":
    a=f.readline()
c=20
b=d=0
while b<10 and b>=0:
    d=d*10+b
    b=ord(a[c])-48
    c=c+1
while d:
    f = urllib2.urlopen(url+"/chapter-"+str(d))
    a="0"
    while a[27:39]!="pageselector":
        a=f.readline()
    b=len(f.readline())-30
    if b>330:
        a=(b+20)/35
    if b<331:
        a=b/33
    chapter=str(d)
    path='http://citymanga.com/files/images/'+manganame+"/"+chapter+"/"
    path2=chapter+'_'
    while a:
        b=str(a)+'.jpg'
        print path2+b
        g = open(path2+b,'wb')
        g.write(urllib.urlopen(path+b).read())
        g.close()
        a=a-1
    d=d-1
usock.close()
f.close()
raw_input()

1209
Humour and Jokes / Re: ( ͡° ͜ʖ ͡°)
« on: January 19, 2013, 12:16:17 am »
It is o.o

1210
Miscellaneous / Re: Sports
« on: January 18, 2013, 11:53:10 pm »
Wait, in the second video, is that actually allowed (swimming underwater the whole way)? If so, I could totally do that o.o I can swim the distance of a pool under water, plus a little extra :D

1211
Miscellaneous / Re: Sports
« on: January 18, 2013, 09:09:08 pm »
I once played soccer (I was never good at it, though). I did swimming when I was younger because the elementary school had everybody swim on Friday's. I was never allowed to do Track or Cross Country (or any other sports after elementary school-- my parents always said "no"). However, two years ago in a phys-ed course for cross training, I brought my mile time down to 2 miles in just under 10 minutes. Let's just say that I am very tall with very long legs ^^ Now I cannot even run a mile without tiring out XD

1212
Humour and Jokes / Re: Funny #omnimaga quotes (NSFW)
« on: January 18, 2013, 01:19:33 am »
I am so proud of myself for that :3

1213
ASM / Re: 84+ Extra Ram Page
« on: January 18, 2013, 12:38:19 am »
As well, make sure that if you are swapping out the page, you swap back in the old page. That is probably the main source of crashing that I can think of. For example, I am not sure if you are using hexcodes to do that, but here is how it would be done:
Code: [Select]
Asm(DB066F)→P     ;Save flashpage
<<program>>
P:Asm(7DD306      ;restore flashpage at the end of your program

1214
Humour and Jokes / Re: Fibonacci Numbers Rock
« on: January 17, 2013, 09:24:21 pm »
Code: [Select]
str(raw_input(">>> "))
Is that really needed? Couldn't you leave str() out of that since raw_input() returns a string anyways? O_o

1215
Humour and Jokes / Re: FIBONACCI BUTTSORT
« on: January 17, 2013, 07:03:58 pm »

Pages: 1 ... 79 80 [81] 82 83 ... 317