Making Switchable Add-ins
#1
Posted 30 April 2004 - 02:47 AM
#2
Posted 30 April 2004 - 04:43 AM
#3
Posted 30 April 2004 - 09:22 AM
All you have to do is to use Getch() for input... with all disadvantages that include!
#4
Posted 06 May 2004 - 01:09 AM
#5
Posted 06 May 2004 - 04:05 PM
#6
Posted 11 May 2004 - 08:39 PM
#7
Posted 12 May 2004 - 04:40 AM
you can output characters with needs a special parameter and
prints things inverse then.
I'm at school so I don't know the values exactly. I'll look after it when I'm
at home.
#8
Posted 12 May 2004 - 01:22 PM
mov ah,0eh mov al,41h int 10hthis prints the letter 'A' as you want
in C you can do this :
void print(char caracter) { asm{ mov ah,0eh mov al,caracter int 10h } }
(not tested made quickly!)
#9
Posted 15 May 2004 - 09:52 PM
#10
Posted 16 May 2004 - 06:22 AM
that was assembled by the french I think. It contains an older version of TC that
is no longer distributed by borland and can compile 80286 specific code.
(this is important for the calc!) and emulate FPU.
You can also use the C functions (printf and so on) but I'd recommend to rewrite
them at least partly because this will give you some additional speed and
a lower filesize.
#11
Posted 16 May 2004 - 08:34 PM
#12
Posted 16 May 2004 - 11:20 PM
To read the Basic files you need my library called "Memzones", that you can download at http://www.2072produ...prog_source.php
#13
Posted 26 May 2004 - 02:30 AM
#include <stdio.h> #include <dos.h> #include <conio.h> void dchar(const char c) { union REGS inr,outr; inr.h.ah=0xE; inr.h.al=c; int86(0x10,&inr,&outr); } void dp(const char*s) { int i; for (i=0;s[i];i++) { dchar(s[i]); } } int main() { clrscr(); gotoxy(1,1); dp("This is dark"); gotoxy(1,2); dp("This is not dark"); getch(); return 0; }
The first line printed is inverted but the second is not. If I just print the first line without the second, it is not inverted. If I change main to just do clrscr then dchar, it doesn't print an invertedcharacter, If I put a gotoxy between clrscr and the dchar, it works fine. It did some other weird things I can explain, but hopefully you have figured out what is wrong by now.
#14
Posted 26 May 2004 - 04:57 AM
are not 100% compatible to PCs BIOS interrupts.
You should rewrite the routines like gotoxy in pure ASM to ensure that they
only do what is possible on the calc.
#15
Posted 27 May 2004 - 03:48 AM
#16
Posted 27 May 2004 - 03:55 PM
#17
Posted 27 May 2004 - 08:45 PM
Unfortunately i search that macros but i dont find them in my HDD. So start searching sites with MACROS on the net, or wait for other post.
#18
Posted 30 May 2004 - 06:53 PM
#19
Posted 31 May 2004 - 01:41 AM
Did you try the following syntax to make asm with your compiler?
void print(char caracter) { asm mov ah,0eh; asm mov al,caracter; asm int 10h; }
#20
Posted 01 June 2004 - 12:19 AM
#21
Posted 01 June 2004 - 04:26 PM
You can use Digital Mars, a free compiler to make your program on the AFX.
#22
Posted 07 June 2004 - 05:30 AM
#23
Posted 07 June 2004 - 10:33 PM
#24
Posted 09 June 2004 - 05:21 PM
#include <stdio.h> void dprint(const char*msg) { int i;char rb; for (i=0;msg[i];i++) { rb=msg[i]; asm mov ah,0eh; asm mov al,rb; asm int 10h; } } int main() { dprint("Hello World"); getch(); }
I did everything like y'all said but it still does not work! Any other suggestions?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users