面向对象汇编程序设计 ObjAsm32

当看到这个题目时是否有这样的闪念?之前也看到不少人的回复:

 

“汇编还能面向对象?不是只有高级语言才有的东东么。”

 

“天呀...如果连ASM都OO了...那这个世界彻底疯了”

 

“终于有人研究这个了!这个objasm32确实在oop中运用的非常熟练,它确实是以宏的形式来实现oop,我觉得在这方面做得比较好.其实汇编也需要oop,至少来说我们想深入理解oop可以阅读objasm32的宏找一下思路.
我觉得objasm32与com in asm 原理差不多,都是运用"牛宏"  ”

 

....

之前下载过,只是感受了一下,这次又下载了较新的ObjAsm32 版本,包括多个模块,像DirectX,COM.等,确实很强大,哎,国外的疯子,太牛了,怎能用海量的工作来形容咧。

更的讨论可以到论坛:ASM Community

http://www.asmcommunity.net/board/index.php?board=38.0

 

 

Introduction

Object-oriented programming, or OOP, is a programming methodology that has become the mainstay of high level languages (HLL) such as Pascal , C++ or SmallTalk. Using ObjAsm32, it is possible now to write elegant assembly programs taking advantage of OOP in the same way as you do using HLLs.

 

The main goal of using an OOP approach in your applications is the encapsulation of data and code that operate on these data into a single program entity. Such an entity is called an object. The data and the related code are collectively known as object members.

 

Some key points about objects are:

 

  • The code in an object usually performs some operation on its own data. This code consists of procedures called methods.
     

  • The data inside an object is hidden. Only the object's code may directly access the data. You can easily break this rule, as it is usual in assembly language, but you deviate from OOP regulations at your own risk. Object data can be of any type, even other objects.
     

  • To use an object, you must first create it in memory. This process is called instantiation and the created object an instance. You can create as many instances as you need in your application, each one with its own data. When the objects are no longer needed, you can destroy them.
     

  • You can construct new objects based on existing ones. This technique is called inheritance and makes it possible to reuse a well known and proven code. Using inheritance, you can write an entire application by simply modifying or enhancing some existing object members.

 

The core of ObjAsm32 is a collection of MASM macros and procedures which implement the OOP model with a minimal overhead.

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值