flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3 Next |
Author |
|
Borsuc
oh I get it now, sorry for the confusion and the al/bl mistake on my part.
![]() |
|||
![]() |
|
Teehee
@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. |
|||
![]() |
|
Teehee
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. |
|||
![]() |
|
Borsuc
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)
|
|||
![]() |
|
bitshifter
To explore new ways is always fun
![]() Here are some parts to help you... http://dex.7.forumer.com/viewtopic.php?p=5278#5278 |
|||
![]() |
|
LocoDelAssembly
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. |
|||
![]() |
|
Teehee
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. |
||||||||||
![]() |
|
Borsuc
hmm why are you mad? if you don't do it for educational purposes why not just use something like Notepad++ with custom highlighting?
|
|||
![]() |
|
Teehee
ah, I like to code
![]() and it's a oportunity to learn more. ![]() |
|||
![]() |
|
Borsuc
sorry that I can't help, I have very limited experience with the Windows GUI and such (only with console apps I am ok).
|
|||
![]() |
|
hopcode
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 |
|||
![]() |
|
Teehee
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. |
|||
![]() |
|
revolution
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. |
|||
![]() |
|
Teehee
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. |
||||||||||
![]() |
|
Teehee
Outlining toggle system working
![]()
_________________ Sorry if bad english. |
|||||||||||||||||||||||||||||
![]() |
|
Borsuc
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. |
|||
![]() |
|
Teehee
I'm trying to convert to plain text, but I'm having many problems, especially with Mouse Position to CharId function.
(just a comment ![]() |
|||
![]() |
|
baldr
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). |
|||
![]() |
|
Teehee
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. |
|||
![]() |
|
Goto page Previous 1, 2, 3 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.