# 13h mode?

**URL:** <https://www.ruby-forum.com/t/13h-mode/115255>\
**Category:** Ruby\
**Created:** [September 22, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/13h-mode/115255 "2007-09-22T16:59:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![p0l4r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@p0l4r](https://www.ruby-forum.com/u/p0l4r)\
**Post date:** [September 22, 2007, 4:59pm UTC](https://www.ruby-forum.com/t/13h-mode/115255/1 "2007-09-22T16:59:20Z")

</div>

Hi i have a question is it possible to run 13h mode using ruby+asm ?

---

<div class="post-metadata">

**Author:** ![p0l4r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@p0l4r](https://www.ruby-forum.com/u/p0l4r)\
**Post date:** [September 22, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/13h-mode/115255/2 "2007-09-22T17:35:29Z")

</div>

Comp Asdfg a Ã©crit :

> Hi i have a question is it possible to run 13h mode using ruby+asm ?  
> why not ruby sdl ?

---

<div class="post-metadata">

**Author:** ![p0l4r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@p0l4r](https://www.ruby-forum.com/u/p0l4r)\
**Post date:** [September 22, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/13h-mode/115255/3 "2007-09-22T18:47:03Z")

</div>

StÃ©phane Wirtel wrote:

> Comp Asdfg a Ã©crit :
> 
> > Hi i have a question is it possible to run 13h mode using ruby+asm ?  
> > why not ruby sdl ?

jep if i would do a game i`ll choose SDL or something else but it`s only  
a theoretical question, is it possible to run 13h mode using ruby and if  
it is for example how would you draw a pixel becouse i have no idea how  
to do it ☹ ?  
thx

---

<div class="post-metadata">

**Author:** ![p0l4r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@p0l4r](https://www.ruby-forum.com/u/p0l4r)\
**Post date:** [September 22, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/13h-mode/115255/4 "2007-09-22T19:14:45Z")

</div>

Comp Asdfg wrote:

> StÃ©phane Wirtel wrote:
> 
> > Comp Asdfg a Ã©crit :
> > 
> > > Hi i have a question is it possible to run 13h mode using ruby+asm ?  
> > > why not ruby sdl ?
> 
> jep if i would do a game i`ll choose SDL or something else but it`s only  
> a theoretical question, is it possible to run 13h mode using ruby and if  
> it is for example how would you draw a pixel becouse i have no idea how  
> to do it ☹ ?  
> thx  
> well ruby doesn’t allow direct system calls or interupts so you’ll have  
> to write c extension, theoretically it’s possible.

try reading some assembler faq, then c faq for how to inline assembler  
in c (there’s no standard, every compiler have it’s own macro) then read  
how to include c in ruby (i suggest rubyinline)

---

<div class="post-metadata">

**Author:** ![p0l4r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@p0l4r](https://www.ruby-forum.com/u/p0l4r)\
**Post date:** [September 24, 2007, 1:05am UTC](https://www.ruby-forum.com/t/13h-mode/115255/5 "2007-09-24T01:05:59Z")

</div>

On Sat, Sep 22, 2007 at 11:59:21PM +0900, Comp Asdfg wrote:

> ## Hi i have a question is it possible to run 13h mode using ruby+asm ?
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

If you really want to do this (and I suspect that you don’t), you could  
write a C extension for allegro:

[http://www.talula.demon.co.uk/allegro/](http://www.talula.demon.co.uk/allegro/)

To get a real mode 13h, you’ll have to run Ruby built with djgpp.

Paul

---

<div class="post-metadata">

**Author:** ![p0l4r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@p0l4r](https://www.ruby-forum.com/u/p0l4r)\
**Post date:** [September 23, 2007, 9:25am UTC](https://www.ruby-forum.com/t/13h-mode/115255/6 "2007-09-23T09:25:54Z")

</div>

Comp Asdfg a Ã©crit :

> StÃ©phane Wirtel wrote:
> 
> > Comp Asdfg a Ã©crit :
> > 
> > > Hi i have a question is it possible to run 13h mode using ruby+asm ?  
> > > why not ruby sdl ?
> 
> jep if i would do a game i`ll choose SDL or something else but it`s only  
> a theoretical question, is it possible to run 13h mode using ruby and if  
> it is for example how would you draw a pixel becouse i have no idea how  
> to do it ☹ ?  
> thx  
> You can develop your own library to draw a pixel with C, and after  
> create a binding “your lib C” \<=\> Ruby with the Ruby’s API .
