Antidisassemblage

A General Discussion forum for TI calculators

Moderator: MaxCoderz Staff

Gambit
Sir Posts-A-Lot
Posts: 252
Joined: Mon 21 Feb, 2005 5:34 am
Location: Laveen, Arizona

Post by Gambit »

Antidisassemblage looks nice, and it most definitely is better than 1 include file'll ever be :wink:
"If SOURCE is outlawed, only outlaws will have SOURCE."
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

Does it look nice? Are you a member?
DarkAuron
Maxcoderz Staff
Posts: 1349
Joined: Sat 18 Dec, 2004 6:53 pm

Post by DarkAuron »

"This is NOT "professional software" though, and is very simplified from what you would see in "real" languages like C or Java.
Java? A 'real' language? HA! A really slow and annoying as hell language, that's what it is! DEATH~! And I bet having a ti-84+SE on the front page makes them feel reallllly special :evil:
[Gridwars Score] - E: 1860037 M: 716641 H: 261194
Gambit
Sir Posts-A-Lot
Posts: 252
Joined: Mon 21 Feb, 2005 5:34 am
Location: Laveen, Arizona

Post by Gambit »

CoBB wrote:Does it look nice? Are you a member?
No I'm not, but I talked to the head programmer on #tcpa. I forgot the syntax, but you can compile code w/ do-whiles and if statements :o The output which gets assembled by good ol' TASM and linked w/ devpac8x. :) Of course, the code is not optimized by any means... *shudders*
"If SOURCE is outlawed, only outlaws will have SOURCE."
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

I don't think the creator's words are the best source of information when it comes to evaluating a product. Getting a simple block structure to compile isn't too hard, pouring out optimised code is; look at z88dk or sdcc. I wonder what user extensibility entails in the case of AD, but I suspect some kind of macro magic here.

Why is the information locked away in a members only section? At least the docs should be public.
Gambit
Sir Posts-A-Lot
Posts: 252
Joined: Mon 21 Feb, 2005 5:34 am
Location: Laveen, Arizona

Post by Gambit »

CoBB wrote:I wonder what user extensibility entails in the case of AD, but I suspect some kind of macro magic here.
Yay! I found them! *thanks moko|log*

So someone would type this up:

Code: Select all

/* chars.ads by Dan Cook
 *
 * Prints all the character values in a 15x18
 * grid using the small (variable width) font.
 * Note that all variables start with a defualt
 * value of zero unless they are tied to some
 * address (i.e. CurRow, PenRow, and PenCol).
 */
 
#include "ti83plus.ads"
#include "text.ads"
 
void main() {
    byte ch;
    .ClrHome();
    CurRow = 6;
    PenRow = 0;
    PenCol = 0;
    do {
        .TextC(ch);
        if(PenCol < 108) PenCol = PenCol + 6;
        else {
            PenCol = 0;
            PenRow = PenRow + 6;
        }
    } while(ch <= 255);
}
And adsmblg would compile it to assembly code. Unfortunately, rafb.net/paste didn't preserve the include files... :( but I can tell you that there are alot of #define macros and such. We were debugging the output of this piece of code last night (Friday)...

/edit: Yay! I found a (working) link! Undebugged code that was generated from above w/ adsmblg:

Code: Select all

.nolist
#include "ti83plus.inc"
.list
 .org userMem-2
 .db t2ByteTok, tAsmCmp
 
func_main:
 B_CALL(_ClrScrnFull)
 LD A,6
 LD (CurRow),A
 LD A,0
 LD (PenRow),A
 LD A,0
 LD (PenCol),A
Label5:         ; <DO-WHILE>   ; WAS <DO->WHILE
 LD A,(local_vars+0)
 B_CALL(_VPutMap)
                ; <IF>
 LD A,(PenCol)
 CP 108
 JP C,Label8                 ;WAS JP C,LabelLabel8
 LD A,(PenCol)
 ADD A,6
 LD (PenCol),A
 JP Label9      ; skip else code
Label8:         ; <ELSE>
 LD A,0
 LD (PenCol),A
 LD A,(PenRow)
 ADD A,6
 LD (PenRow),A
Label9:         ; <End IF-ELSE>
 LD A,(local_vars+0)
 INC A
 LD (local_vars+0),A
 LD A,255
 LD HL,local_vars+0        ;WAS CP (local_vars+0)
 CP (HL)                     ;INSERTED
 JP C,Label5                 ;WAS JP C,LabelLabel5
Label7:         ; <End WHILE
 RET
 
local_vars:
 .DB 0
.END
.END
Messy indeed :roll:

@kv83: Probably not programming help anymore :wink:
"If SOURCE is outlawed, only outlaws will have SOURCE."
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

Why is ch increased? It never happens in the source. Also, it is always true that a byte value is less than or equal to 255, while the generated code calculates exactly the opposite (it never loops).
Gambit
Sir Posts-A-Lot
Posts: 252
Joined: Mon 21 Feb, 2005 5:34 am
Location: Laveen, Arizona

Post by Gambit »

Well, I was lucky enough to actually find a link to the assembly output that works (out of many). Apparently, Dan didn't give us an updated version of the source, since it was just 1 change... btw CoBB, I think you ought to be talking to Dan (a.k.a. CrazyProg) instead of me about adsmblg :)
"If SOURCE is outlawed, only outlaws will have SOURCE."
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

I don't plan to interfere with the project in any way, but it would have been nice to have been able to read something about it.
User avatar
kv83
Maxcoderz Staff
Posts: 2735
Joined: Wed 15 Dec, 2004 7:26 pm
Location: The Hague, Netherlands
Contact:

Post by kv83 »

Gambit wrote:@kv83: Probably not programming help anymore :wink:
Happy now? ;)
Image
User avatar
DJ_O
Calc King
Posts: 2324
Joined: Mon 20 Dec, 2004 6:47 pm
Location: Quebec (Canada)
Contact:

Post by DJ_O »

The project look nice but not very professional. It's actually a simplified version of java. It might be useful but I dunno if it's too much limited. Also the author said that in may he leave the TI community for 2 year to serve as a missionary for his church so the project is most likely on hiatus :(
ImageImageImageImage
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

Ahh i suspected that this was CrazyProg, he has been on #tcpa discussing this project.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
DJ_O
Calc King
Posts: 2324
Joined: Mon 20 Dec, 2004 6:47 pm
Location: Quebec (Canada)
Contact:

Post by DJ_O »

Yeah it is, he talked to me on AIM about it.
ImageImageImageImage
ISUCK
Sir Posts-A-Lot
Posts: 168
Joined: Fri 17 Dec, 2004 9:32 pm

Post by ISUCK »

It said you had to post a comment or tell why you wanted to be in this group... and I didn't really wanna type stuff :x
User avatar
DJ_O
Calc King
Posts: 2324
Joined: Mon 20 Dec, 2004 6:47 pm
Location: Quebec (Canada)
Contact:

Post by DJ_O »

Yeah I know and this was annoying. It took a whole week before I get accepted in the group then the programmer AIMed me to ask me why I wanted to join the group and he seemed disapointed by the fact it was just to check the project :p . Anyway I might try it someday
ImageImageImageImage
Post Reply