flat assembler
Message board for the users of flat assembler.

flat assembler > Linux > Terminal Graphics FASM

Author
Thread Post new topic Reply to topic
KainKelly



Joined: 23 Dec 2018
Posts: 7
Is there a easy-ish way to make terminal graphics with FLAT? I like the retro look and will only be using this as a hyper visor of sorts for AI development, for a true plug and play AI frame work. I have messed with tensor flow and tinkered with kaggle, I think a assembly frame work could be made less hardware intensive. Even if it would be a pain to get to alpha, it would take a MASSIVE data set to max out 8 gigs of ram on a video card let alone 12 or 16....

Sincerely
~Kain Kelly

P.S. I know I am not a god at ASM but I started to teach myself at a very young age from hacking games. So let me apologize in advance if I ask a stupid question, theory doesn't always line up with what I have seen in things like chrome, fire fox, windows, or what ever I am screwing around with at that moment.

_________________
Brute force, shall it fail you simply did not use enough.
Post 23 Dec 2018, 07:19
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16707
Location: In your JS exploiting you and your system
Are you using an existing OS? If so then which one? Getting a graphics frame should be quite easy, but each OS does things differently.
Post 23 Dec 2018, 08:29
View user's profile Send private message Visit poster's website Reply with quote
guignol



Joined: 06 Dec 2008
Posts: 578
Location: /96A
Why do you keep replying the collection of words?
Post 23 Dec 2018, 12:27
View user's profile Send private message Reply with quote
KainKelly



Joined: 23 Dec 2018
Posts: 7
revolution wrote:
Are you using an existing OS? If so then which one? Getting a graphics frame should be quite easy, but each OS does things differently.


This is going to be on a arch VM, glad to hear that this should be reasonably straight forward. Eager to get this running if only somewhat working!

Sincerely,
~Kain Kelly

_________________
Brute force, shall it fail you simply did not use enough.
Post 23 Dec 2018, 20:41
View user's profile Send private message Reply with quote
KainKelly



Joined: 23 Dec 2018
Posts: 7
guignol wrote:
Why do you keep replying the collection of words?

Am I missing a inside joke?

_________________
Brute force, shall it fail you simply did not use enough.
Post 23 Dec 2018, 20:42
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16707
Location: In your JS exploiting you and your system
KainKelly wrote:
This is going to be on a arch VM
I'm going to assume you mean Arch Linux here. So I will move this topic to the Linux forum.

Perhaps the topic below will answer your question:
https://board.flatassembler.net/topic.php?t=17752
Post 24 Dec 2018, 01:37
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16707
Location: In your JS exploiting you and your system
There is a quick and dirty way to write arbitrary graphics to the console graphics screen, but you must exit X first. With some versions of X you can use something like CTRL-ALT-F1 to get a terminal session and then run this:
Code:
sudo dd if=/dev/urandom of=/dev/fb0 bs=1M count=1    
I've assumed your frame buffer is at least 1M. If it is smaller then you might get an exception.

So writing bytes to /dev/fb0 can give arbitrary access to the screen. But you need to know the geometry of the screen to make sensible images. The example above is just random data for proof of concept only.
Post 25 Dec 2018, 03:02
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1425
revolution wrote:
There is a quick and dirty way to write arbitrary graphics to the console graphics screen, but you must exit X first. With some versions of X you can use something like CTRL-ALT-F1 to get a terminal session and then run this:
Code:
sudo dd if=/dev/urandom of=/dev/fb0 bs=1M count=1    
I've assumed your frame buffer is at least 1M. If it is smaller then you might get an exception.

So writing bytes to /dev/fb0 can give arbitrary access to the screen. But you need to know the geometry of the screen to make sensible images. The example above is just random data for proof of concept only.
I think writing random data can be pretty dangerous. But basically just seems you have to write to /dev/fb0.
Post 25 Dec 2018, 19:22
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16707
Location: In your JS exploiting you and your system
Furs wrote:
I think writing random data can be pretty dangerous. But basically just seems you have to write to /dev/fb0.
Images that makes sense to humans are just random data to the hardware anyway. Maybe someone will get lucky and see an image of Jesus in the random data? Laughing
Post 26 Dec 2018, 01:36
View user's profile Send private message Visit poster's website Reply with quote
KainKelly



Joined: 23 Dec 2018
Posts: 7
revolution wrote:
KainKelly wrote:
This is going to be on a arch VM
I'm going to assume you mean Arch Linux here. So I will move this topic to the Linux forum.

Perhaps the topic below will answer your question:
https://board.flatassembler.net/topic.php?t=17752


Thank you, yes I did mean arch, I originally was going to use a VERY secure hyper visor. plans have changed and I will be running it on bare metal.

~KainKelly

_________________
Brute force, shall it fail you simply did not use enough.
Post 26 Dec 2018, 04:50
View user's profile Send private message Reply with quote
KainKelly



Joined: 23 Dec 2018
Posts: 7
Furs wrote:
revolution wrote:
There is a quick and dirty way to write arbitrary graphics to the console graphics screen, but you must exit X first. With some versions of X you can use something like CTRL-ALT-F1 to get a terminal session and then run this:
Code:
sudo dd if=/dev/urandom of=/dev/fb0 bs=1M count=1    
I've assumed your frame buffer is at least 1M. If it is smaller then you might get an exception.

So writing bytes to /dev/fb0 can give arbitrary access to the screen. But you need to know the geometry of the screen to make sensible images. The example above is just random data for proof of concept only.
I think writing random data can be pretty dangerous. But basically just seems you have to write to /dev/fb0.


Yeah I am just trying to make some basic box's an a progress bar, nothing over the top in any way at all.

~Kain Kelly

_________________
Brute force, shall it fail you simply did not use enough.
Post 26 Dec 2018, 04:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.