ATTENTION NEW USERS: Due to bot traffic, we are forced to manually approve registrations. We get thousands of bots trying to register, causing us to delete registrations in bulk with little ability to filter what is real or not. If you're having trouble getting approved, then send an email to ptrworkmails@gmail.com explaining that you are a real user. Use the same email you're trying to register with. Thank you.

Search found 5 matches

by Utahraptor118
Thu Mar 07, 2024 4:24 pm
Forum: General Discussion
Topic: New Musical Trax
Replies: 1
Views: 46916

New Musical Trax

I've been working on a Nu-Metal like track in an attempt to create something with a co-worker. Guitars are a little muddy until I can remove some undesired frequencies:

https://tyrantocean.bandcamp.com/track/project1
by Utahraptor118
Sun May 14, 2023 5:16 am
Forum: QBasic
Topic: Qbasic 'CHatGPT' RPN generated code
Replies: 3
Views: 68793

Re: Qbasic 'CHatGPT' RPN generated code

Translating a high-level language like QBasic into x86 assembly code specifically for a 286 processor is a complex task that involves multiple stages such as lexical analysis, parsing, semantic analysis, code generation, and optimization. Creating a complete 286 assembly translator in QBasic is ...
by Utahraptor118
Sun May 14, 2023 5:11 am
Forum: QBasic
Topic: Qbasic 'CHatGPT' RPN generated code
Replies: 3
Views: 68793

Re: Qbasic 'CHatGPT' RPN generated code

DIM SHARED code$
DIM SHARED token$

' Main program
CLS
INPUT "Enter code: ", code$
PRINT
token$ = GetToken()
WHILE token$ <> ""
SELECT CASE token$
CASE "PRINT"
PrintStatement()
CASE ELSE
PRINT "Invalid statement: "; token$
END SELECT
token$ = GetToken()
WEND
END

' Lexical Analysis: Get next ...
by Utahraptor118
Sun May 14, 2023 5:06 am
Forum: QBasic
Topic: Qbasic 'CHatGPT' RPN generated code
Replies: 3
Views: 68793

Re: Qbasic 'CHatGPT' RPN generated code

Certainly! Here's an example of a Reverse Polish Notation (RPN) expression evaluator implemented in QBasic, capable of handling order of operations with parentheses:

```qbasic
DECLARE FUNCTION EvaluateRPN (rpnExpression$) AS SINGLE
DECLARE FUNCTION IsOperator (token$) AS INTEGER
DECLARE FUNCTION ...
by Utahraptor118
Sun May 14, 2023 5:03 am
Forum: QBasic
Topic: Qbasic 'CHatGPT' RPN generated code
Replies: 3
Views: 68793

Qbasic 'CHatGPT' RPN generated code

Certainly! Here's an example of a Reverse Polish Notation (RPN) expression evaluator implemented in QBasic:

```qbasic
DECLARE FUNCTION EvaluateRPN (rpnExpression$) AS SINGLE

INPUT "Enter an RPN expression: ", expression$
result = EvaluateRPN(expression$)
PRINT "Result: "; result

FUNCTION ...