flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > Word octal editor

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
MIHIP



Joined: 14 Feb 2013
Posts: 137

Word octal editor

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:08; edited 1 time in total
Post 03 Jan 2015, 13:05
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15794
Location: Misner space

Which part do you need help with?

How far have you got?

Post your current code and we can probably help you to repair it.
Post 03 Jan 2015, 13:40
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:08; edited 1 time in total
Post 03 Jan 2015, 13:54
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:09; edited 1 time in total
Post 03 Jan 2015, 14:01
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15794
Location: Misner space

Here is the assembly part rewritten in fasm syntax:

Code:
  pushad
  mov ecx,[size]
  mov esi,[dat]
  lea edi,[esi+ecx]
  xor eax,eax
  @@:lodsb
     mov edx,eax
     mov ebx,eax
     and eax,7
     shr edx,3
     and edx,7
     shr ebx,6
     mov ah,byte[wct+eax]
     mov al,byte[wct+edx]
     shl eax,8
     mov al,byte[wct+ebx]
     mov [edi],eax
     add edi,3
  loop @b
  popad

dat dd ?
size dd ?
wct db 'ABCDEFGO'

Note that you can't use "data" as a label name in fasm because it is reserved for other usage.
Post 03 Jan 2015, 14:27
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 14:32
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 14:36
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 14:42
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 14:56
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 15:25
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 16:26
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 18:34
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 03 Jan 2015, 18:45
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15794
Location: Misner space

For input and output of files in Windows you can use the following APIs:
  • CreateFile
  • ReadFile
  • WriteFile
  • CloseHandle
And to get the filenames from the command line use:
  • GetCommandLine
Or you can use the predefined stdin and stdout:
  • GetStdHandle
Post 04 Jan 2015, 06:13
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 04 Jan 2015, 12:41
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15794
Location: Misner space


MIHIP wrote:
... i need code...

So write some.

MIHIP wrote:
please, Revolution, help me! You know, how to do it! Please!

I am helping.

I'm not going to write your code for you, I have my own code to write.
Post 04 Jan 2015, 13:00
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 04 Jan 2015, 14:00
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15794
Location: Misner space

Who wrote the Delphi code for you?
Post 04 Jan 2015, 14:03
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 04 Jan 2015, 14:09
View user's profile Send private message Visit poster's website Reply with quote
MIHIP



Joined: 14 Feb 2013
Posts: 137

Thread is closed. Thanks Wink


Last edited by MIHIP on 29 Jan 2015, 19:10; edited 1 time in total
Post 04 Jan 2015, 18:15
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.