flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
JohnFound 05 Jan 2004, 06:02
Why not:
Code: ps2a: mov ebx, [0] ppsp1: mov ebx, [0] ppsp2: add [0], 0x2 ppsp3: mov [0], ebx and then you can use: [ps2a+2], [ppsp1+1], etc. to fill real addresses. or better use on runtime: Code: ; compute the address in esi. mov ebx, [esi] mov ebx, [esi] add [esi], 0x2 mov [esi], ebx |
|||
![]() |
|
terex 05 Jan 2004, 08:07
Oh, chets, it is really mutch more better! Thanks. Why i didn't get this solve myself?
![]() ![]() ![]() _________________ sorry for my english |
|||
![]() |
|
JohnFound 05 Jan 2004, 08:37
terex wrote:
Well, I never check them. ![]() ![]() ![]() ![]() ![]() Regards |
|||
![]() |
|
scientica 05 Jan 2004, 11:35
There are an opcode tutotial on the http://board.win32asmcommunty.net by the Svin (very good stuff IMO), if you want to do opciding there are a few macros for modrm,sib (and single byte instruction /reg), which accepts binary (eg bsib 01,100,001).
_________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
![]() |
|
terex 05 Jan 2004, 21:41
Quote: someone wrote: "Real man code in hex." My friend told me that one ultraexpirenced professor in his university have said it to students during first lesson of programming ![]() 2scientica: i have read good (imho) opcode tutorial in my native language on wasm.ru... and it didn't help me ![]() About macroses. Continueing this idea we can got a set of macroses which translate mnemonic instructions to the opcode ![]() ![]() _________________ sorry for my english |
|||
![]() |
|
Madis731 05 Jan 2004, 23:25
I guess I must be a "real man"
![]() I have a PC-E500 pocket computer from Sharp and I could code only in BASIC in it until I found out that I can call memory addresses from BASIC ![]() Now I poke to some memory addresses, call it and later peek the values that should have changed by running my code:) Fun, ain't it? It has only 26K of RAM, so I can't do any large programs in it:( ...but I'm building a dungeon game (or was it MUD game) I guess it will be about 2KB P.S. I'm a really lucky man, 'cause the computer allows me to code in hex AND in dec too ![]() |
|||
![]() |
|
JohnFound 05 Jan 2004, 23:46
Madis731 wrote: I guess I must be a "real man" Well this is classics. ![]() Or better write some Win32 programm with FASM. ![]() Regards. |
|||
![]() |
|
Madis731 07 Jan 2004, 00:18
...some work has been done for me by some fine chinese and japanise people, but I don't understand their language so I'm just testing the assemblers how would they work. And of course, I don't have any cable between my PC and PC(PocketComputer), so every byte must be hand-written to the PC-E500
![]() But I can manage, I'll keep my code size optimized & everyone will be happy ![]() But thanks for the advice, I'll do that some day inside my PC(pocket). As you said, my life would be MUCH easier ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.