Search found 342 matches

by Seb McClouth
Thu Feb 07, 2008 5:26 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 51442

Thx Man!!

I'm gonna try the code later. But it looks just like the thing I need!!
by Seb McClouth
Wed Feb 06, 2008 12:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 51442

Well I need the code for a value which is calculated with several things I don't know the outcome. So basically I made a calculation (see code under here) FOR a = 0 TO 20 'I'm assuming for the test we only need 20 bits If temp1 AND 2^a THEN 'as Ted told me to test, I'm testing here if it goes temp$ ...
by Seb McClouth
Tue Feb 05, 2008 3:07 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 51442

Hey guys Due to some Linux stuff I was again in need of the binary to bit. It was for the ~ (complementary stuff). If you don't know what this is: e.g. we have 8 in 4 bit => 1000, when doing the ~action, it becomes 0111, because it simple changes 1 to 0 and 0 to 1. Maybe you already know how to do t...
by Seb McClouth
Tue Feb 05, 2008 1:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 51442

That true. Thx Ralph.
by Seb McClouth
Tue Feb 05, 2008 5:40 am
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 51442

I understand. Nothing more fustrating then ppl who you do a lot for, never say thx or anything.
by Seb McClouth
Tue Feb 05, 2008 1:06 am
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 51442

Re: Hum de dumb

It appears that Sebby has better things to do than reply to our posts. So I won't bother with that dude no more! Ted Hey Teddy Soz about not replying but I'm extremly busing. I'm working full time. I'm responsible for a family (that includes a wife and a baby girl). I also have to go to school for ...
by Seb McClouth
Sat Feb 02, 2008 4:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: binair to bits
Replies: 20
Views: 51442

binair to bits

Hey all

I need to know how I can get the bit (yeah the 0-1) from a binairy value.

Does anyone have such a convertor in Basic?

And incase you must now, it's to retrieve AH and AL from AX. If you have a better way, please let me know.

Grtz
by Seb McClouth
Wed Jan 30, 2008 2:22 pm
Forum: General Discussion
Topic: asm
Replies: 3
Views: 9043

asm

Hey all

I was wondering how you could do the following ASM-codes in QuickBasic using interrupt:

Code: Select all

cmp bl,#0x1a
and

Code: Select all

mov [14],ax
thx!!
by Seb McClouth
Tue Jan 29, 2008 6:10 pm
Forum: General Discussion
Topic: 3D anaglyph Games in qbasic
Replies: 14
Views: 26940

well , not . but now I understand. 0,81 cm is 8,1 milimeters, and 81 micrometers... dunno about you but 4 cm's is okay in that case...
by Seb McClouth
Tue Jan 29, 2008 3:57 pm
Forum: General Discussion
Topic: 3D anaglyph Games in qbasic
Replies: 14
Views: 26940

so that makes it 1 1/2 inch
2,54 cm + 1,27 cm = 3,81 cm

for easy reference 1 1/2 inch is 4 cm then?
by Seb McClouth
Tue Jan 29, 2008 1:45 am
Forum: General Discussion
Topic: 3D anaglyph Games in qbasic
Replies: 14
Views: 26940

oh, nice one, but uh how much centimeters are 1 1/2" (inch?)
Isn't an "(inch?) about 1,54 cm? makin that around 2,29 cm?
by Seb McClouth
Sun Jan 27, 2008 12:46 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71504

I had posted a big post with some links concerning &H60 and INP but indeed like Pats said, better use Inkey$.

I guess the post got lost somehow, well no worries.
by Seb McClouth
Sat Jan 26, 2008 5:51 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71504

I suspect that INP(&H60) doesn't work the same as INKEY$.

I'll check it out later for you.
by Seb McClouth
Sat Jan 26, 2008 1:17 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Fastest way to get Keyboard presses
Replies: 21
Views: 71504

2, How can I make letters typed in the INPUT command come out as *'s (exmaple, password program) I'm used this routine in a older vrsion of QBinux: DO PRINT tdspl$;" " 'Display storing variable press$ = INKEY$ IF press$ <THEN> 0 THEN sb = LEN(dspl$) Ndspl$ = MID$(dspl$, 1, (sb - 1)) dspl$...
by Seb McClouth
Thu Jan 24, 2008 5:45 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Error during run-time initialization
Replies: 8
Views: 12941

I've tried something that I've seen once before. I've loaded every module into PDS, and it created .MAK-file. Running from inside PDS then and compiling gives me no more errors.
by Seb McClouth
Thu Jan 24, 2008 6:22 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Error during run-time initialization
Replies: 8
Views: 12941

Plasma At first I had one big module, to make things easy. But as I had always done before, I now again working on seperate modules. But since everything seems to go wrong only bootsect.bas I see at this point no use in creating the other modules. I'm now stuck with the error L2029: 'INTERRUPTX' : u...
by Seb McClouth
Wed Jan 23, 2008 5:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Error during run-time initialization
Replies: 8
Views: 12941

Re: Oh, no!

burger2227 wrote:Not another version of Linux!

Aren't there enough already? :roll:
MIGHT!! No saying I will... QBinux is cool enough for now...
by Seb McClouth
Wed Jan 23, 2008 2:54 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Error during run-time initialization
Replies: 8
Views: 12941

Also I'm not quite sure where you're going with this, but if this is supposed to be a "real" OS and not just something that runs in DOS, you can't use QB's runtime library and you can't use int 21. For the time being it is a Shell (or as I call it a platform-OS). Like you have Bash for Li...
by Seb McClouth
Wed Jan 23, 2008 2:49 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Error during run-time initialization
Replies: 8
Views: 12941

I edited the code because I have indeed forgot to copy stuff from the source on my laptop.

Grtz
by Seb McClouth
Tue Jan 22, 2008 4:15 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Error during run-time initialization
Replies: 8
Views: 12941

Error during run-time initialization

The compile-problem has been solved, but now I'm stuck with Error during run-time initialization when I try to run the file. Batch-file for compiling: @ECHO OFF del *.obj del testrun.exe bc /o /Ot /Fs /G2 /Fpi /E /X boot\bootsect.bas; ren bootsect.obj a.obj link a,,nul,..\..\devel\bc7\lib\qbx.lib+.....