PDA

View Full Version : Maybe will help


Kengurius
03.10.2006, 10:31
Simple console converter. DO NOT USE SPACES WHEN WRITING HEX code 5B 5D <-- WRONG !
5B5D <-- Good

http://www.sendspace.com/file/bmqz2u

http://img97.imageshack.us/img97/3470/stupidroflhj5.th.jpg (http://img97.imageshack.us/my.php?image=stupidroflhj5.jpg)
Edit: UPDATED ! 1.01v

Hex --> ascii
Ascii--> Hex now awailible ! :)

Kengurius
03.10.2006, 11:08
some please, say some1 , make hex---> ascii or not ? if it's usless i will not do it

mcrabben7
03.10.2006, 13:06
There are tools out there, but most of them suck. If this works well for both hex to ASCII and ASCII to hex then I'd use it.

Kengurius
03.10.2006, 13:11
Thanks, its glad even 1 man will use it, so... i think in today evening i will make and upload both hex-->ascii and ascii-->hex, will post it here

Btw i'm very very lame for now... just started learning, and it will be my 1st share :)

Kengurius
03.10.2006, 19:04
Updated, check the 1st post

HongK
03.10.2006, 19:35
lol it's funny I was just bitching last night that I needed something like this... Good share in my opinion .. I'll have to check it out and see if it works well :D

Thanks

Kengurius
03.10.2006, 19:42
np, its looks strange with those switching modes: hex and ascii, but after some time u will be ok, don't forget do not use Spaces in hex :D !

HongK
03.10.2006, 19:42
What I really want to see is a program that will convert assembly instructions into their corresponding opcode ...

demon
05.10.2006, 11:32
question.
did u ever open ultraedit options..? it has very same converters and lots more :)

Kengurius
05.10.2006, 12:19
maybe, wanna i will make laugh u ? it writen in pascal ROFL

Aspire
05.10.2006, 18:50
maybe, wanna i will make laugh u ? it writen in pascal ROFL

mmm, funny :D i dont realy know what reason in your program, but nice - i give another one in your collection

program dem_size;
uses crt;
var
P:pointer;
I:word;
procedure Prog_size;
var
SystemTotalSize:word;
PrefixSize:word;
CodeSize:word;
DataSize:word;
HeapSize:word;
AllocHeapSize:word;
Factor:real;
S:string[80];
L:byte absolute S;
L1:byte;
function Lin_adr (P:pointer):longint;
begin
Lin_adr:=longint(Seg(p^))*16+Ofs(P^)
end;
begin
SystemTotalSize:=640*1024 div 16;
PrefixSize:=256 div 16;
CodeSize:=Dseg - PrefixSeg - PrefixSize;
DataSize:=Seg(HeapOrg^)-SSeg;
HeapSize:=MemW[PrefixSeg:2] - Seg(HeapOrg^);
AllocHeapSize:=(Lin_adr(HeapPtr)-Lin_adr(HeapOrg)+1) div 16;
Factor:=67/SystemTotalSize;
L:=Round(Factor*PrefixSize);
FillChar(S[1],L,#176);
Writeln('PSP ',PrefixSize:5,' ',S);
L:=Round(Factor*CodeSize);
FillChar(S[1],L,#176);
Writeln('Code ',CodeSize:5,' ',S);
L:=Round(Factor*DataSize);
FillChar(S[1],L,#176);
Writeln('Data ',DataSize:5,' ',S);
L:=Round(Factor*HeapSize);
L1:=Round(Factor*AllocHeapSize);
FillChar(S[1],L1,#176);
FillChar(S[L1+1],L-L1,#219);
Writeln('Heap ',HeapSize:5,' ',S);
end;
begin
Randomize;
for I:=1 to 100 do
GetMem(P,Random(1000));
Rrog_size;
end.


GL