home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / vmsnet / internal / 1134 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.3 KB  |  36 lines

  1. Newsgroups: vmsnet.internals
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!gwdu03.gwdg.de!gwdgv1.gwdg.de!MOELLER
  3. From: moeller@gwdgv1.gwdg.de
  4. Subject: CALL/RSB contest
  5. Message-ID: <MHL5I3T@gwdu03.gwdg.de>
  6. Sender: news@gwdu03.gwdg.de (USENET News System)
  7. Nntp-Posting-Host: gwdgv1.gwdg.de
  8. Reply-To: moeller@gwdgv1.gwdg.de
  9. Organization: GWDG Goettingen, F.R.Germany
  10. References: <712439947.77751.MILLER@TGV.COM>
  11. Date: Thu, 30 Jul 1992 19:33:40 GMT
  12. Lines: 22
  13.  
  14. It's not that easy coming up with a reasonable entry mask -
  15. if you want at least <r2,r3,r4,r5>, apart from MOVZWL and CLRQ,
  16. only the funny variant CHMK #0 exists (thrashes registers).
  17. As a starter, here is something using MOVZWL #...
  18.  
  19. .entry    jsb_or_call,^m<dv,r2,r3,r4,r5,r8,r9,r10,r11>
  20.     movzbl    #0,-4(sp)    ;purists might prefer ",-(SP)" and "TSTL (SP)+"
  21. ;
  22. ; condition codes: "zero" after CALL, non-"zero" after JSB
  23. ; all registers unchanged
  24. ;
  25.     beql    call_code
  26. jsb_code:    ;; code #1 goes here
  27.     rsb
  28. call_code:    ;; code #2 goes here
  29.     ret
  30.  
  31. Is there a solution for ^m<r2,r3,r4,r5> ?? :-{)}
  32.  
  33. Wolfgang J. Moeller, GWDG, D-3400 Goettingen, F.R.Germany | Disclaimer ...
  34. PSI%(0262)45050352008::MOELLER      Phone: +49 551 201516 | No claim intended!
  35. Internet: moeller@gwdgv1.dnet.gwdg.de   | This space intentionally left blank.
  36.