From: takeda@ehimegw.dpc.ehime-u.ac.jp (Nobuyuki Takeda)
Newsgroups: fj.sys.x68000
Subject: Re: about BREAK key
Date: 18 Dec 92 09:12:49 GMT
Distribution: fj
Organization: Ehime University, Ehime, Japan
In-reply-to: enchan@hcrlgw.crl.hitachi.co.jp's message of 18 Dec 92 08:32:02 JST


  $@C]ED!w0&I2Bg!":#F|$O!"B48&%b!<%I$G$J$/!"#7;~$+$iK:G/2q(J
$@%b!<%I$G$9!#!J>P!K(J

  $@$H$&$H$&!"0JA0$*$+$7$$$H$$$C$F$$$?FbB"%O!<%I%G%#%9%/$,(J
$@F0$+$J$/$J$C$F$7$^$$!"J,2r$7$F$_$?$i!"!J%U%i%C%H%1!<%V%k(J
$@$G$J$/!"$b$&JR$o$l$NJ}$N!K%1!<%V%k$N@\?(ITNI$H$$$&$7$g!<(J
$@$b$J$$860x$G$7$?!#$7$+$bAH$_N)$FD>$7$?$i%U%m%C%T!<$N0[2;(J
$@$b2?8N$+>C$($F$7$^$$$^$7$?!#(J ... (^_^)

In article <ENCHAN.92Dec17153201@hcrlgw.crl.hitachi.co.jp>
   enchan@hcrlgw.crl.hitachi.co.jp (Takashi Endoh) writes:

$@!d!!$O$8$a$^$7$F!#1sF#!wF|N)$G$9!#(JX68000 $@$N%V%l!<%/%-!<$K$D$$$F!"(J
$@!d#2E@$[$I:$$C$F$$$k$3$H$,$"$j!"2r7hK!$rA\$7$F$$$^$9!#(J

$@$O$8$a$^$7$F!#(J

$@!d(J(1) X68000 $@$G!"(Jbreak $@%-!<3d$j9~$_$G!"(Jbreak $@%-!<$,#32s2!$5$l$?$i(J
$@!d(J    $@$"$k4X?t$r8F$S$@$7!"%V%l!<%/%-!<$,2!$5$l$?2s?t$,#32sL$K~$G(J
$@!d(J    $@$"$C$?$i!"$=$N$^$^$J$K$b$7$J$$$G=hM}$rB39T$9$k!"$H$$$&;v$,(J
$@!d(J    $@$d$j$?$$$N$G$9$,!"$I$&$d$C$?$i$h$$$N$G$7$g$&$+!#(J

  $@:G6a!"?($C$F$J$$$N$GNI$/3P$($F$$$^$;$s!J$b$7$+$7$?$i!"(J
$@4V0c$C$F$$$k$+$bCN$l$^$;$s!K$,!"$?$7$+!"5-21$G$O!"(J
$@#H#u#m#a#n#6#8#k$G$O!"%W%m%0%i%`Cf$G!"%V%l%$%/%-!<$,(J
$@2!$5$;$?:]$N%Y%/%?$,$G$-$kH&$G$9!#(J
  $@%V%l%$%/%-!<$N%Y%/%?$O!"(J0xFFF1 $@$H$$$&!"5?;wE*$J#D#O#S(J
$@%3!<%k$N$h$&$K$J$C$F$$$k$N$G!"(JINTVCS$@$r;H$C$F!"(J

    #include <doslib.h>

    static break_count=0;

    void break_key()
    {
      break_count++;
      if ( break_count < 3 ) return;
      break_count = 0;
      break_key_3_times();
    }

    #define _CTRLVC 0xFFF1         /* $@%V%l!<%/%-!<$N%Y%/%?(J */

    main()
    {
      INTVCS(_CTRLVC, break_key);  /* $@%Y%/%?$r=q$-BX$($k(J */
               $@!'(J
    }

$@$H=q$1$P!"B?J,!"$$$$$H;W$$$^$9$,!#(J

$@!d(J(2) break $@%-!<$K$h$k3d$j9~$_$r%^%9%/$9$k$K$O$I$&$7$?$iNI$$$N$G(J
$@!d!!!!$7$g$&$+!#(Jbreak=kill $@$H@_Dj$7$F$b!"(Jscanf() $@$NCf$H$+$+$i(J
$@!d(J    break $@$K$h$k3d$j9~$_$,$+$+$C$F$7$^$$!"$&$^$/9T$-$^$;$s!#(J

$@$?$V$s!"(J(1)$@$HF1MM$K$7$F!"%V%l!<%/$r2!$7$?:]$N=hM}%k!<%A%s$r!"(J

    void break_key()
    {
    }

$@$H!"Cf?H$,$J$$%k!<%A%s$K$7$F$*$1$PNI$$$H;W$$$^$9$,!#(J

$@8e!"#D#O#S%l%Y%k$G$J$/!"#I#O#C#S%l%Y%k$G$b!"$G$-$?$h$&(J
$@$J5$$b$7$^$9!#@53N$K$O!"#X#6#8#0#0#0$O!"#m#c#6#8#0#0#0(J
$@$N(J trap #? $@$+2?$+$N%Y%/%?$N0l$D$,!"(JCTRL-C $@$r2!$7$?:]$N(J
$@%Y%/%?$H$7$F3d$jEv$F$F$$$?5$$b$7$^$9!#(J
  $@%W%m%0%i%^!<%:%^%K%e%"%k$N:G8e$NJ}$N%a%b%j!<%^%C%W?^(J
$@!J%Y%/%??^!K$r8+$F$_$F$/$@$5$$!#(J .... (^_^;)
$@$?$@$7!"$3$N>l9g$O!"3d$j9~$_$+$i$NI|5"$O!"(Jrts $@$G$J$/!"(J
rte $@$G$9$+$i!"(Jgcc + interupt.h $@$G$J$$$H!"$&$^$/#C$G$O!"(J
$@=q$1$J$$$H;W$$$^$9!#(J

$@#p!%#s!%(J

  $@#1#27n$bCf=\$r2a$.$^$7$?$,!"Nc$N1=$O$I$&$J$C$?$N$G$7$g(J
$@$&$+$M$'!)(J
--
|$@!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1!1(J||
|  $@&((J                                                              $@&((J  ||
|     $@0&I2Bg3X(J $@9)3XIt(J $@>pJs9)3X2J(J $@#4G/(J $@CNG=>pJs9)3X9V:B(J $@Aj868&5f<<(J      ||
|              $@C](J  $@ED(J  $@?-(J  $@9,(J  (Nobuyuki Takeda)    $@!2!2!2(J  $@!2!2!2(J     ||
|     E-mail : takeda@ehimegw.dpc.ehime-u.ac.jp    $@!C3NG'!C!C<h>C!C(J    ||
|  $@&((J                                               $@!1!1!1(J  $@!1!1!1(J $@&((J  ||
========================================================================
Newsgroups: fj.sys.x68000