flat assembler
Message board for the users of flat assembler.
Index
> Windows > Strings and Local Variables Goto page Previous 1, 2, 3 Next |
Author |
|
Borsuc 13 Dec 2009, 00:42
oh I get it now, sorry for the confusion and the al/bl mistake on my part.
|
|||
13 Dec 2009, 00:42 |
|
Teehee 13 Dec 2009, 09:06
@Borsuc:
@LocoDelAssembly: I don't know to read the dump what the dump is? how it works? what can I do with it? how can I learn to read it!? what your dump is telling us!? (sorry for many questions!) _________________ Sorry if bad english. |
|||
13 Dec 2009, 09:06 |
|
Teehee 13 Dec 2009, 11:43
Teehee wrote: I think that way you proposed can't work in characters like Ç â é ã... and the AND way it works. err.. I was testing and seems the only exception is characteres between #123 and #127. They change. _________________ Sorry if bad english. |
|||
13 Dec 2009, 11:43 |
|
Borsuc 13 Dec 2009, 16:44
The dump, the way I see it, is <your, Loco's, original, 0> sequence for every byte. e.g: first byte is your result, second is Loco's, third is original character, fourth a 0, then it repeats (4-byte sequence)
|
|||
13 Dec 2009, 16:44 |
|
bitshifter 14 Dec 2009, 05:34
To explore new ways is always fun
Here are some parts to help you... http://dex.7.forumer.com/viewtopic.php?p=5278#5278 |
|||
14 Dec 2009, 05:34 |
|
LocoDelAssembly 14 Dec 2009, 15:16
Quote:
It mess with some characters from #64 to #126. Then chars #247 and #255 don't seem to be converted properly. And there is one more problem with chars above 127, them are charset dependent. It is almost OK for Windows-1252, but will it do the correct translation for the other charsets? For the typical console application charset this will not work as the ñ and Ñ are consecutive. |
|||
14 Dec 2009, 15:16 |
|
Teehee 15 Dec 2009, 12:43
oh well..
hopcode wrote: Coding it yourself is the best solution Ok, I decided to accept the challenge, and building my own syntax highlight. I already made the base code for the application*, and now I need some tips to start to work with text (like insert char). And all that memory management thing. Can you guys help me? ** We have:
** We need: (TODO list, step 1)
_________________ Sorry if bad english. |
||||||||||
15 Dec 2009, 12:43 |
|
Borsuc 15 Dec 2009, 23:48
hmm why are you mad? if you don't do it for educational purposes why not just use something like Notepad++ with custom highlighting?
|
|||
15 Dec 2009, 23:48 |
|
Teehee 15 Dec 2009, 23:51
ah, I like to code
and it's a oportunity to learn more. |
|||
15 Dec 2009, 23:51 |
|
Borsuc 15 Dec 2009, 23:59
sorry that I can't help, I have very limited experience with the Windows GUI and such (only with console apps I am ok).
|
|||
15 Dec 2009, 23:59 |
|
hopcode 16 Dec 2009, 03:04
Teehee wrote: ...accept the challenge... Is your boldness for sale ? - You can find a good example of sy-hili in the FASMW source by Tomasz - Alternative, coded in c++ but a very clever coding from A-to-Z by James, here http://catch22.net/tuts/neatpad - Except for something good but very limited, i would not suggest you other code to study. Most of them lack the most important thing:design. Tips: Imho One should begin from now: - to think 64bit - to think portable - to think pluggable/modular Teehee wrote: ...building my own syntax highlight. mmmh... Ok, if you get it, and you build it good stuff, in less than 100kb i would say, i will be very glad to adopt it in my biberkopf. Anyway, before starting, please read this credits note,the list of contributors,... in more than 10 years of improvement on an edit component. Here: http://www.scintilla.org/ScintillaHistory.html Regards, and Happy Coding!!! hopcode |
|||
16 Dec 2009, 03:04 |
|
Teehee 16 Dec 2009, 10:09
hopcode wrote: Is your boldness for sale ? Nah... just hobby. Quote: - You can find a good example of sy-hili in the FASMW source by Tomasz Yeah, I took a look and i'm trying to understand somethings. Unfortunately there is no comments in that code Quote: Tips: Why should I? 32bit will disappear fast? Quote: ...i will be very glad to adopt it in my biberkopf. What is biberkopf? However I'm a Asm beginner. I'll [try to] made to learn, mainly. But, how I said before, I need some tips like how to alloc space to the text and realloc when needed. And how can I access the text, to insert and remove chars (bc i'm not using winApi for that, i'm drawing the text manually [drawtext])... The rest is with me _________________ Sorry if bad english. |
|||
16 Dec 2009, 10:09 |
|
revolution 16 Dec 2009, 10:21
Teehee wrote: 32bit will disappear fast? Even inside 64bit OSes the 32bit apps mostly run faster than the equivalent 64bit app. Depends upon the app of course, but in general 32bit is still the preferred choice. |
|||
16 Dec 2009, 10:21 |
|
Teehee 17 Dec 2009, 20:11
Hi ppl
I'm doing a prototype in C# (bc it's fastest to code) of how the App will be. Later I just convert it to Asm. Below, a preview image. Features:
Again: I need someone explain me how can I work with text in Asm (alloc/realloc space, insert/remove char, etc.), so I can get start with Asm-side coding. Thanks
_________________ Sorry if bad english. |
||||||||||
17 Dec 2009, 20:11 |
|
Teehee 19 Dec 2009, 16:57
Outlining toggle system working (see video preview below)
_________________ Sorry if bad english. |
|||||||||||||||||||||||||||||
19 Dec 2009, 16:57 |
|
Borsuc 19 Dec 2009, 17:05
Is reallocing fast if you're editing a large file? I don't know, it would be better (but much more complicated) to keep a linked list of edits (what you edit) and then in the background use a thread (with low priority) that converts the linked list into straight text (in a separate buffer obviously), and when it's done (i.e if the user is idle) then switch buffers (like double buffering in video), and start all over, but the old buffer because the "second" buffer and the new buffer being the active one.
ok that was off the top of my head. that's probably how Hex Editors that can open extremely large files (not in RAM) and modify them work, except that they probably only use a linked list and no double buffering. |
|||
19 Dec 2009, 17:05 |
|
Teehee 24 Dec 2009, 18:53
I'm trying to convert to plain text, but I'm having many problems, especially with Mouse Position to CharId function.
(just a comment ) |
|||
24 Dec 2009, 18:53 |
|
baldr 24 Dec 2009, 19:49
Teehee,
No offence intended. Is my monitor lying to me, or your selection's highlighting logic suffers from ubiquitous "off-by-one" mistake? Why do you call that "outlining"? Maybe "collapsing" sequence of instructions to some descriptive comment? Storage of arbitrarily long strings is performance vs. memory tradeoff. First decide how you will handle "undo" (you may store original file verbatim and dynamically apply consolidated changes, for example of memory-wise). |
|||
24 Dec 2009, 19:49 |
|
Teehee 24 Dec 2009, 21:14
baldr wrote: No offence intended. Don't worry, man. I'm here to learn and I need to learn a lot. I know that what I'm trying to do is too much to a beginner. But i'm learning a lot just trying to do! Quote: Is my monitor lying to me, or your selection's highlighting logic suffers from ubiquitous "off-by-one" mistake? I don't understand. What do you mean? Quote: Why do you call that "outlining"? Maybe "collapsing" sequence of instructions to some descriptive comment? Yeah, sorry, I mean collapsing! I said 'outlining' bc Visual Studio call that 'outlining' Quote: Storage of arbitrarily long strings is performance vs. memory tradeoff. First decide how you will handle "undo" (you may store original file verbatim and dynamically apply consolidated changes, for example of memory-wise). Why its so important to think about undo first? And should I really think about memory in a Asm-code editor? bc working with strings don't spend too much memory (does it!?). Maybe 2 ~ 4Mb to store? Well, this is my concept. But i bet i'm wrong. _________________ Sorry if bad english. |
|||
24 Dec 2009, 21:14 |
|
Goto page Previous 1, 2, 3 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.