flat assembler
Message board for the users of flat assembler.
Index
> Main > ia32e consditional jumps Goto page Previous 1, 2 |
Author |
|
revolution 14 Mar 2010, 13:21
OMG the 8086 only has single byte signed conditional jumps. We will never be able to program anything in the 8086.
Hehe, there is always a way around things. Don't complain, be pragmatic, and don't waste your time worrying about something that will never happen in your programming career. Who can write even 2MB+ of assembled code? 1000 times bigger, 2GB+ ... forget about it, there would be so many bugs that it wouldn't run well anyway. |
|||
14 Mar 2010, 13:21 |
|
revolution 14 Mar 2010, 13:34
Okay a quick computation:
|
|||
14 Mar 2010, 13:34 |
|
edfed 14 Mar 2010, 16:23
sometimes, problems are created to be just problems. maybe a recursive virtual code or a set of useless macros can create a 2GB executable. for example: Code: mov eax,ebx add eax,ecx then, convert every instructions by a macro. Code: macro moveaxebx { push dword 0 dword 0 dword0 dword0 mov al,bl mov ah,bh ror eax,16 ror ebx,16 mov al,bl mov ah,bh ror eax,16 pop dword 0 dword 0 dword 0 dword 0 } .... macro addeaxecx { push dword 0 dword 0 dword0 dword0 push ebx edx mov ebx,eax mov edx,ecx shr ebx,16 shr edx,16 add al,cl adc ah,ch adc bl,dl adc bh,dh ror eax,16 mov al,bl mov ah,bh ror eax,16 pop edx ebx pop dword 0 dword 0 dword 0 dword 0 } moveaxebx addeaxedx making that for all instructions, and then, code with these macros. i presume executable will be very big. |
|||
14 Mar 2010, 16:23 |
|
a115433 14 Mar 2010, 18:17
i have a better idea.
create hardware that will probe your mind and translate yout thoughts into program. your idea -> machine representation. and now using this neural link create complicated simulation of something, for example some biological process on subatomic scale. And here we are. code is 2GB+, and we cant conditional jump or even return to highle nested loops. Now intel/amd must do something about this, they add 8 byte jumps to the list, dumping all existing PCs in the world. If this neural interface would do HLL code, problem is partial, because on unsupported machines you can use cmov'c (with penalty of bigger code). |
|||
14 Mar 2010, 18:17 |
|
revolution 14 Mar 2010, 18:24
a115433 wrote: i have a better idea. |
|||
14 Mar 2010, 18:24 |
|
LocoDelAssembly 14 Mar 2010, 18:28
When your idea comes true, CPU will probably already have FPGA-like features that will work more efficiently. GPUs (which today are already capable of more than just graphics, see CUDA for instance), will be enormously parallel (they already are, but will much more, again, probably with some FPGA-like structure if not already). In any case, looks that the idea needs to be data driven much more that code driven.
The penalty BTW, it is not so clear, having a ten bytes instruction for conditional jumps seriously consumes decoding bandwidth, so unless you add separate opcodes for those not-needed-in-our-lifetime Jcc rel64 but instead promote Jcc rel32 to rel64 then thanks but I prefer the CPU just as it is now. |
|||
14 Mar 2010, 18:28 |
|
edfed 14 Mar 2010, 19:58
if it is for a neural network, you can use 16 bit structures and values, then, work on them with 32 bits code, and then, you will have all the needed features to do a neural network.
let imagine a neron like a structure. Code:
neuron:
value dw ?
vptr dw ?
k dw ?
p dw ?
i dw ?
d dw ?
value is a 16bits value vptr, k, p, i and d will be pointers, not values. then, if it is 16bits pointers, it will be easy to fit in a cyclic address space. k = cooeficient for the PID p = product of value and [vptr] i = integral of value d = differential of value create 65536 neurons like this. use a pointer to point to a vlaue of a neuron and maybe it will do something interresting. i don't know, but i imagine it can be interesting. with 32 bits, you will need a lot of memory just to contain the 4G neurons. but all in all, a conditional jump don't have to jump so far, because it is in a local algorythm, it is named functions. we create functions to simplify the code, and avoid bugs. |
|||
14 Mar 2010, 19:58 |
|
a115433 14 Mar 2010, 20:01
fpga?
wtf i though it was my idea |
|||
14 Mar 2010, 20:01 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.