Recent posts

#1
General Discussion / Re: Why is it so hard to retur...
Last post by José Roca - Today at 10:32:18 PM
I have read a humorous comment admitting that Kubrick agreed to film the fake landing on the Moon, but being such a perfectionist director, he insisted on filming it on the Moon. :)
#2
General Discussion / Re: Why is it so hard to retur...
Last post by Zlatko Vid - Today at 08:57:49 PM
Well ..maybe is a fake
but Soviet(Russia) confirm landing,,,
maybe is also a fake ...who knows..

"we destroyed technology" is a such a nonsense
maybe enough for little children.. ;D 
#3
Welcome back, Jose.
I hope you enjoy your time on the beach!
#4
Asianometry

#5
General Discussion / Re: Why is it so hard to retur...
Last post by José Roca - Yesterday at 11:29:29 PM
#6
OxygenBasic Examples / Re: Asm multiplication
Last post by Frank Brübach - Yesterday at 03:06:08 PM
Hi I have the solution

' multiplication of two values
'
byte val1
byte val2
int result ''resd 1
   
    val1=4
    val2=6 '

     mov eax,val1 
     mov eax,val2  ''multiply eax by ebx  "
     mul val1 'ebx 
     mov result,eax
     
print "the result of val1*val2 is " + str(result) '24
#7
Very interesting topic.
I often look into this. There are many videos on YouTube.

Most people say that they think its even more REAL then their previous life.
#8
OxygenBasic Examples / Re: Asm multiplication
Last post by Theo Gottwald - Yesterday at 09:39:18 AM
That is not a simple question, as you do not say what datatypes you want to multiply.
Then there may be differences in handling signed, unsigned Integer and/or FP-Data.
FP-Numbers can also be different formats.

Let me say that such questions get most easily answers if you just let AI explain it to you.



QuoteTo multiply two numbers in x86 assembly, you can use the mul instruction. Here is an example of how to multiply two numbers stored in the eax and ebx registers:

Move the first number into the eax register:
mov eax, first_number

Move the second number into the ebx register:
mov ebx, second_number

Multiply the two numbers using the mul instruction. The mul instruction multiplies the value in the eax register by the value in the specified register or memory location, and stores the result in the eax (lower 32 bits) and edx (upper 32 bits) registers:
mul ebx

The result of the multiplication is now stored in the eax register (if the result is less than 32 bits) or in the edx:eax register pair (if the result is 64 bits).
Here is the complete code:


section .data
    first_number dd 5
    second_number dd 10

section .bss
    result resd 1

section .text
    global _start

_start:
    ; load the first number into eax
    mov eax, [first_number]

    ; load the second number into ebx
    mov ebx, [second_number]

    ; multiply eax by ebx
    mul ebx

    ; store the result in [result]
    mov [result], eax

    ; exit the program
    mov eax, 1
    xor ebx, ebx
    int 0x80
In this example, the first number is 5 and the second number is 10. The result of the multiplication is 50, which is stored in the eax register.
#9
General Discussion / Re: Why is it so hard to retur...
Last post by Theo Gottwald - Yesterday at 09:35:51 AM


#10
General Discussion / Re: The future of ... PowerBas...
Last post by Theo Gottwald - Yesterday at 09:25:44 AM
Hallo Johann and anybody who can login to the Powerbasic Forum,
I can not download any stuff from the Powerbasic Forum, due they removed me some years ago.

If you find some interesting stuff there, you are free, to copy the posts - especially those with attachments to this forum.

When the PB Forum has been closed parts may still be available in the wayback machine but attachments will not.