Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 171 online users. » 0 Member(s) | 168 Guest(s) Bing, Google, Yandex
|
Latest Threads |
Strange Happenings
Forum: Bug Reports
Last Post: zedex82
05-07-2025, 09:05 AM
» Replies: 0
» Views: 42
|
.tap file code not execut...
Forum: Help & Support
Last Post: Zoran
04-28-2025, 10:59 AM
» Replies: 4
» Views: 421
|
Exit from more than one l...
Forum: Wishlist
Last Post: Duefectu
04-23-2025, 10:06 PM
» Replies: 3
» Views: 334
|
put small ASM programs li...
Forum: How-To & Tutorials
Last Post: Zoran
04-18-2025, 02:02 PM
» Replies: 6
» Views: 1,663
|
Creating +3 Menus - Loadi...
Forum: Help & Support
Last Post: merlinkv
04-16-2025, 02:08 PM
» Replies: 6
» Views: 603
|
Randomize not very random...
Forum: Help & Support
Last Post: Zoran
04-08-2025, 10:40 AM
» Replies: 4
» Views: 937
|
Scope rules
Forum: Bug Reports
Last Post: Zoran
04-04-2025, 09:46 AM
» Replies: 2
» Views: 373
|
Using constants not allow...
Forum: Bug Reports
Last Post: baltasarq
03-19-2025, 10:00 PM
» Replies: 8
» Views: 1,135
|
404 page not found
Forum: Documentation
Last Post: boriel
03-08-2025, 07:16 PM
» Replies: 5
» Views: 2,920
|
Spectrum keywords codes
Forum: Bug Reports
Last Post: boriel
03-08-2025, 11:00 AM
» Replies: 1
» Views: 438
|
|
|
Joystick Library |
Posted by: wilco2009 - 02-08-2013, 09:12 PM - Forum: Gallery
- Replies (2)
|
 |
Attached is included my joystick library to manage the joystick
Basically includes constants and macros to keep the same speed access that reading directly the keyboard ports.
The file keyboard.bas is a interface library to manage the keyboard.
Keyboard.bas is used by joystick.bas. It includes all the functions to manage the access to the joystick, The structure of joystick.bas as the following:
- Keyboard (OPQA/Enter), Kempston, Sinclair (Two players) and Cursor Joystick are supported.
- The active joystick is stored internally in the CtrlSelected variable and includes two functions to access it (SelectControl/GetSelectedControl).
- The other functions lets read the state of all joystick buttons.
- In order to let control two players (Sinclair case), are included in all functions a parameter called "played" with possible values PLAYER1/PLAYER2 (0/1).
- The Sinclair right player is used for player 2.
<!-- m --><a class="postlink" href="https://docs.google.com/folder/d/0B69T2laxW_ueenc4SmJBTzFEeEU/edit?usp=sharing">https://docs.google.com/folder/d/0B69T2 ... sp=sharing</a><!-- m -->
|
|
|
Stack |
Posted by: na_th_an - 02-08-2013, 10:35 AM - Forum: How-To & Tutorials
- Replies (1)
|
 |
Maybe this has been solved before, but I can't search for "stack" in the forum 'cause the search engine tells me it's a very common word so it won't be included in the search XD
Were the stack is located? Can I control where it is located without messing things up?
I'm asking this 'cause I'll be trying using extra RAM pages in 128K models for storage.
|
|
|
fourspriter error with -O 2 option |
Posted by: jevilon - 02-07-2013, 08:25 PM - Forum: Bug Reports
- Replies (6)
|
 |
When I try to build my game, using fourspriter 2.1, if you compile normal works, but if I put optimization level 2 or level 3 gives me the error:
main.bas: 5526: error: Undefined label '__LABEL__fsp21DataPool'
Na_th_an I asked and he said that you mentioned it to you.
greetings
|
|
|
My binary occupies the same reducing the HEAP |
Posted by: jevilon - 02-06-2013, 08:48 PM - Forum: Help & Support
- Replies (5)
|
 |
First, apologize if this topic has been discussed, but I do not speak good English and I can not find either.
My "problem" is that although HEAP reduce to 512, the binary I still occupies the same is not supposed to reduce the size and leaves you more space for the program?
Lo primero, pedir disculpas si este tema se ha tratado, pero no hablo bien ingles y no puedo buscar bien.
Mi "Problema" es que aunque reduzca el HEAP a 512, el binario me sigue ocupando lo mismo ¿no se supone que reduce el tamaño y te deja mas espacio para el programa?
|
|
|
|