Skip to content

Output ports in GPU not working correctly #1

@Examnes

Description

@Examnes

The ports on the GPU only support input, but do not support output.

Expected Behavior

When I write
mov port0, X
or
mov 63488, X
I expect this to reflect on the IOBus and there will be X at 0 cell

Current Behavior

For some reason this only works for input, i.e. mov X, port0 works as it should, but
mov port0, X does not work, or rather it works, and X really gets into cell 63488, but it is not accessible from the outside.

Possible Solution

I'm not sure, but in the code I have not seen any logic related to writing to IOBus, read only.

Steps to Reproduce

1.Enter the following code in the editor:

Main();
#include <drivers\drv_gl.txt>
void Main()
{
      glVertexMode( 1 );
      mov port0,220
      glClear( 70, 70, port0, 255 );
      glBindTexture( 'brick/brick_model' );
      glColor( 255, 255, 255, 255 );
      glRectWH( 128, 128, 256, 256 );
      glExit();
}

2.Install GPU somewhere
3.Install near Data port
4.Install a screen next to it
5.Connect screen to port0 of Data Port
6.Connect IOBus to Data Port
7.Refresh GPU

0 should still remain on screen

Context

I would like to send requests from the GPU to receive any data from the outside, because the internal memory of the GPU is limited, and for this IOBus and MemBus are provided there, but for some reason, they both work only for input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions