🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.pascal
4 messages
4 total messages Started by Robert Wesołowski Fri, 01 Feb 2008 09:21
32-bitowy assembler
#92431
Author: Robert Wesołowski
Date: Fri, 01 Feb 2008 09:21
2 lines
1102 bytes
Wiecie może jak oszukać 16-bitowego Turbo Pascala i zmusić go do działania 
na 32-bitowych rejestrach. We FreePascalu to jest możliwe ale mi chodzi o TP 
Re: 32-bitowy assembler
#92433
Author: Daniel Janus
Date: Fri, 01 Feb 2008 09:26
14 lines
1563 bytes
Dnia 01.02.2008 Robert Weso?owski <wesolowskirobert@zsberg.edu.pl> napisał/a:
> Wiecie mo?e jak oszukaae 16-bitowego Turbo Pascala i zmusiae go do dzia?ania 
> na 32-bitowych rejestrach. We FreePascalu to jest mo?liwe ale mi chodzi o TP 

Prefiksami (bajty 66h i 67h, zależnie od instrukcji).  Na przykład:

   db 66h; xor ax, ax                 (* xor eax, eax)
   db 66h; mov ax, 5678h; dw 1234h    (* mov eax, 12345678h)

-- 
Daniel 'Nathell' Janus, moveat@nathell.korpus.pl, http://korpus.pl/~nathell
Windows: A thirty-two bit extension to a sixteen-bit patch to a eight-bit
operating system originally coded for a four-bit microprocessor written by a
two-bit company that can't stand one bit of competition. [Jargon File 4.3.3] 
Re: 32-bitowy assembler
#92437
Author: Andrzej Grażyński
Date: Thu, 01 Oct 2009 19:50
7 lines
1018 bytes
Robert Wesołowski pisze:
> Wiecie mo¿e jak oszukaæ 16-bitowego Turbo Pascala i zmusiæ go do dzia³ania 
> na 32-bitowych rejestrach. We FreePascalu to jest mo¿liwe ale mi chodzi o TP 
> 
> 

USE32
Re: 32-bitowy assembler
#92435
Author: Andrzej Grażyński
Date: Tue, 02 Mar 2010 22:11
15 lines
1489 bytes
Daniel Janus pisze:
> Dnia 01.02.2008 Robert Weso?owski <wesolowskirobert@zsberg.edu.pl> napisał/a:
>> Wiecie mo?e jak oszukaae 16-bitowego Turbo Pascala i zmusiae go do dzia?ania 
>> na 32-bitowych rejestrach. We FreePascalu to jest mo?liwe ale mi chodzi o TP 
> 
> Prefiksami (bajty 66h i 67h, zależnie od instrukcji).  Na przykład:
> 
>    db 66h; xor ax, ax                 (* xor eax, eax)
>    db 66h; mov ax, 5678h; dw 1234h    (* mov eax, 12345678h)
> 

A co zrobisz z: BTS, BTR, BTC, BSF itd., BSWAP, MOVSX, MOVZX ?


Jak masz BP7, to masz też TASMX. Najlepiej zrobić OBJ'a.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads